terminal title with current dir name
#override the precmd
function precmd {
case $TERM in
xterm*)
print -Pn "\e]0; %.\a"
;;
esac
}
Written by Vishnu Atrai
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Related Tags
#zsh
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#