misc/zshrc_vcsinfo
changeset 23 c215dcd869ce
parent 21 77f885aba914
child 54 c8054d1073d3
equal deleted inserted replaced
22:f84d194b7d99 23:c215dcd869ce
   133 
   133 
   134 function __precmd_vcsinfo {
   134 function __precmd_vcsinfo {
   135 
   135 
   136   vcs_info
   136   vcs_info
   137 
   137 
   138   local deco="%{${fg_no_bold[white]}%}"
   138   local deco="%{${fg_no_bold[cyan]}%}"
   139 
   139 
   140   if [[ -O "$PWD" ]]; then
   140   if [[ -O "$PWD" ]]; then
   141     local path_color="${fg_no_bold[magenta]}"
   141     local path_color="${fg_no_bold[magenta]}"
   142   elif [[ -w "$PWD" ]]; then
   142   elif [[ -w "$PWD" ]]; then
   143     local path_color="${fg_no_bold[blue]}"
   143     local path_color="${fg_no_bold[blue]}"