浏览代码

udpate prompt

pull/1/head
10sr 12 年前
父节点
当前提交
8dfbe543b6
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. +7
    -6
      bashrc

+ 7
- 6
bashrc 查看文件

@@ -453,9 +453,10 @@ __my_prompt_function(){ # used by PS1
local c3=
local cdef=
else
local c1="\e[31m"
local c2="\e[32m"
local c3="\e[37m"
local c1="\e[31m" # color for PWD
local c2="\e[36m" # color for user
local c3="\e[37m" # color for OLDPWD
local c4="\e[32m" # color for ::
local cdef="\e[0m"
fi
if iswindows
@@ -482,9 +483,9 @@ __my_prompt_function(){ # used by PS1
fi
# local battery=$(battery-state [%s] | sed -e 's`%`%%`g') # very slow

printf " [${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}${battery}${ip}\n"
printf "${c2}${USER}@${HOSTNAME}${cdef} ${date}\n"
printf "shlv:${SHLVL} dirs:${dirs} last:${lastreturn} "
printf "${c4}:: ${cdef}[${c1}${pwd}${cdef}<${c3}${oldpwd}${cdef}]${git}${svn}${battery}${ip}\n"
printf "${c4}:: ${c2}${USER}@${HOSTNAME}${cdef} ${date}\n"
printf "${c4}:: ${cdef}shlv:${SHLVL} dirs:${dirs} last:${lastreturn} "

}
__my_set_title(){


正在加载...
取消
保存