Commit 8578fc7f authored by junk@logio.cz's avatar junk@logio.cz

Fixed detect exists __git__ps1

parent 2862b56d
......@@ -4,8 +4,9 @@ PS1+='`if [ $? = 0 ]; then echo "\[\033[30m\]0"; else echo "\[\033[31m\]1"; fi`'
PS1+="\[\033[1;32m\]\u@$(hostname)\[\033[m\]" # user@server
PS1+='\[\033[97m\]\[\033[41m\]\w\[\033[49m\]'
if [ $(type -t __git_ps1) = "function" ]; then
PS1+='\[\033[34m\]$(__git_ps1) '
$(compgen -c | grep __git_ps1 > /dev/null 2>&1)
if [ $? -eq 0 ]; then
PS1+='\[\033[34m\]$(__git_ps1) '
fi
PS1+='\[\033[32m\]$'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment