diff --git a/common/.zshrc b/common/.zshrc index 4ed6232..8f9fabd 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -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