commit d026303baffff5e7f36d53af073321992bbf4eac Author: Pi Date: Sat Nov 12 16:25:50 2011 -0800 Make OS X terminal understand the present working directory. diff --git a/.zshrc b/.zshrc index 40143ee..5280198 100644 --- a/.zshrc +++ b/.zshrc @@ -153,6 +153,9 @@ alias ll="ls | less" # title magicking function title { + [[ "$TERM_PROGRAM" == "Apple_Terminal" && -z "$INSIDE_EMACS" ]] && \ + printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}" + if [[ $TERM == "screen" ]] { # Use these two for GNU Screen: print -nR $'\033k'$1$'\033'\\\