author | Shingo W. Kagami |
Sat, 23 Jan 2010 03:39:07 +0900 | |
changeset 10 | 0afd98c7dab2 |
parent 9 | a38aec29a244 |
child 11 | 76f664f2183e |
1.1 --- a/.zshrc Fri Jan 22 22:56:02 2010 +0900 1.2 +++ b/.zshrc Sat Jan 23 03:39:07 2010 +0900 1.3 @@ -48,7 +48,7 @@ 1.4 PROMPT=$'%{\e[35m%}%m%#%{\e[m%} ' 1.5 precmd() { RPROMPT="[$PWD]" } 1.6 1.7 -dirbase() { basename `pwd` } 1.8 +dirbase() { basename $PWD } 1.9 chpwd() { [ "x$TERM" = "xscreen" ] && echo -n "\ek`hostname | cut -b 1-3`:`dirbase`\e\\" } 1.10 1.11 chpwd