Unicode prompt! ... and a git alias
This commit is contained in:
parent
9967b2eca1
commit
cc6eb73c35
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user