zshrc: fix first run things

This commit is contained in:
Cynthia Foxwell 2022-03-24 18:01:22 -06:00
parent 2d9b66a097
commit 3fed5bc4eb

View file

@ -1,10 +1,10 @@
if [[ -z "~/.zsh" ]]; then
if [[ ! -d "$HOME/.zsh" ]]; then
mkdir -p ~/.zsh
fi
fpath=(~/.zsh $fpath)
if [[ -z "~/.zsh/gitstatus" ]]; then
if [[ ! -d "$HOME/.zsh/gitstatus" ]]; then
git clone --depth=1 https://github.com/romkatv/gitstatus.git ~/.zsh/gitstatus
fi
source ~/.zsh/gitstatus/gitstatus.plugin.zsh