瀏覽代碼

fix OLDPWD and add __my_ps1_git

pull/1/head
10sr 12 年之前
父節點
當前提交
064994d2fb
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bashrc

+ 1
- 1
bashrc 查看文件

@@ -498,7 +498,7 @@ then
__my_cdef="\e[0m"
fi
_PS1="\
${__my_c4}:: ${__my_cdef}[${__my_c1}\w/${__my_cdef}<${__my_c3}\${PWD}${__my_cdef}]\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\$(__my_ps1_moc)\n\
${__my_c4}:: ${__my_cdef}[${__my_c1}\w/${__my_cdef}<${__my_c3}\${OLDPWD}${__my_cdef}]\$(__my_ps1_git)\$(__my_ps1_bttry)\$(__my_ps1_ipaddr)\$(__my_ps1_moc)\n\
${__my_c4}:: ${__my_c2}\u@\H${__my_cdef} \D{%a, %d %b %Y %T %z} ${SHELL} \V\n\
${__my_c4}:: ${__my_cdef}shlv:${SHLVL} cnum:\# jobs:\j last:\$? \$ "
PS1=$_PS1


Loading…
取消
儲存