Browse Source

show sh info in PS1

pull/1/head
10sr 11 years ago
parent
commit
7f06f78f73
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      shrc

+ 9
- 1
shrc View File

@@ -1160,8 +1160,16 @@ then
__my_cdef="$__color_default" __my_cdef="$__color_default"
fi fi


if $inbash
then
__my_ps1_sh="[BASH:$BASH_VERSION]"
elif $inzsh
then
__my_ps1_sh="[ZSH:$ZSH_VERSION]"
fi

__my_ps1_info(){ __my_ps1_info(){
echo "$(__my_ps1_scale)$(__my_ps1_git)$(__my_ps1_bttry)$(__my_ps1_ipaddr)$(__my_ps1_moc)"
echo "${__my_ps1_sh}$(__my_ps1_scale)$(__my_ps1_git)$(__my_ps1_bttry)$(__my_ps1_ipaddr)$(__my_ps1_moc)"
} }


_ps1_bash="\ _ps1_bash="\


Loading…
Cancel
Save