Only add shgit to PS1 if git is installed

这个提交包含在:
Lucas 2020-02-17 22:40:13 +00:00
父节点 c145066753
当前提交 63c21d37a5
共有 1 个文件被更改,包括 1 次插入1 次删除

查看文件

@ -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