Fix terminal title on OS X 10.8.
This commit is contained in:
parent
bede1a2a71
commit
71cc9b2b05
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ function set-title-precmd {
|
||||||
if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
|
if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
|
||||||
# Set the current working directory in Apple Terminal.
|
# Set the current working directory in Apple Terminal.
|
||||||
printf '\e]7;%s\a' "file://$HOST${PWD// /%20}"
|
printf '\e]7;%s\a' "file://$HOST${PWD// /%20}"
|
||||||
|
set-tab-title "${(%):-%15<...<%~%<<}"
|
||||||
else
|
else
|
||||||
set-window-title "${(%):-%~}"
|
set-window-title "${(%):-%~}"
|
||||||
for kind in tab screen; do
|
for kind in tab screen; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue