Browse Source

Only add shgit to PS1 if git is installed

master
Lucas 1 month ago
parent
commit
63c21d37a5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dotfiles/shrc

+ 1
- 1
dotfiles/shrc View File

@@ -31,7 +31,7 @@ if [ -d ~/local/man ]; then
fi

PS1=
if [ -f ~/code/lucas/env/utils/shgit ]; then
if command -v git >/dev/null 2>&1 && [ -f ~/code/lucas/env/utils/shgit ]; then
. ~/code/lucas/env/utils/shgit
export PS1='$(shgit)'
fi


Loading…
Cancel
Save