Unicode prompt! ... and a git alias

This commit is contained in:
Dan Buch
2012-03-14 00:25:39 -04:00
parent 9967b2eca1
commit cc6eb73c35
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -212,11 +212,11 @@ function rss_pid_command(){
function precmd(){
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;32m\]"
PS1="\[\033[01;32m\]\u@\h\[\033[00m\]⋮\[\033[01;32m\]"
PS1="$PS1$(trunc_pwd)\[\033[00m\] "
local pcla="$(which print-color-loadavg 2>/dev/null)"
test -n "$pcla" && test -x $pcla && PS1="$PS1($(print-color-loadavg)) "
PS1="$PS1$(__git_ps1 "(%s)")\n⍨ "
test -n "$pcla" && test -x $pcla && PS1="$PS1⎛$(print-color-loadavg)⎠ "
PS1="$PS1$(__git_ps1 "⎛%s⎠")\n≻ "
if [ -n "$1" ]
then