Fix shgit shell style and reenable it

This commit is contained in:
Lucas 2019-12-09 11:03:41 +00:00
parent 9b49b33642
commit ba76c45683
2 changed files with 24 additions and 16 deletions

View file

@ -30,11 +30,17 @@ if [ -d ~/local/man ]; then
alias man="/usr/bin/man -m ~/local/man"
fi
PS1=
if [ -f ~/code/lucas/env/utils/shgit ]; then
. ~/code/lucas/env/utils/shgit
export PS1='$(shgit)'
fi
case $SHELL in
/bin/mksh)
PS1='${HOSTNAME:=$(hostname -s)}\$ '
PS1=$PS1'${HOSTNAME:=$(hostname -s)}\$ '
;;
*) PS1='\h\$ '
*) PS1=$PS1'\h\$ '
;;
esac
export PS1