Fix shgit shell style and reenable it
This commit is contained in:
parent
9b49b33642
commit
ba76c45683
2 changed files with 24 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue