Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 308 Bytes

current-dir-in-iterm-tab-title.md

File metadata and controls

13 lines (9 loc) · 308 Bytes

Show Current dirctory name in iterm tab title

# put this in your .bash_profile
if [ $ITERM_SESSION_ID ]; then
  export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND";
fi

Reference

https://gist.github.com/phette23/5270658