From d596c467a5aedbf74a3095f5d5ffaced193a397c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 22 Mar 2022 22:40:21 -0600 Subject: [PATCH] zshrc: untested fresh install support --- common/.zshrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/.zshrc b/common/.zshrc index 53a07ec..a1bd437 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -1,5 +1,12 @@ +if [[ -z "~/.zsh" ]]; then + mkdir -p ~/.zsh +fi + fpath=(~/.zsh $fpath) +if [[ -z "~/.zsh/gitstatus" ]]; then + git clone --depth=1 https://github.com/romkatv/gitstatus.git ~/.zsh/gitstatus +fi source ~/.zsh/gitstatus/gitstatus.plugin.zsh # Lines configured by zsh-newuser-install