From 71cc9b2b052cde6e24aa58b8373553256d093315 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Sun, 8 Jul 2012 04:57:08 +0300 Subject: [PATCH] Fix terminal title on OS X 10.8. --- modules/terminal/init.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/terminal/init.zsh b/modules/terminal/init.zsh index d0bab0b7..57bb218d 100644 --- a/modules/terminal/init.zsh +++ b/modules/terminal/init.zsh @@ -82,6 +82,7 @@ function set-title-precmd { if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then # Set the current working directory in Apple Terminal. printf '\e]7;%s\a' "file://$HOST${PWD// /%20}" + set-tab-title "${(%):-%15<...<%~%<<}" else set-window-title "${(%):-%~}" for kind in tab screen; do