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

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

View File

@ -47,7 +47,7 @@
ls = ls-files
nuke = clean -dfx
pr = pull --rebase
s = status
s = status --short
st = status
sta = stash
stcq = diff --cached --name-only