Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 253 Bytes
# Set the terminal title in OS X, stolen from http://tinyurl.com/5u9wfr
case $TERM in (*xterm*|ansi)
function settab { print -Pn "\e]1;%~\a" }
function settitle { print -Pn "\e]2;%~\a" }
function chpwd { settab; settitle }
settab; settitle
;;
esac