Skip to content

Commit

Permalink
Fix path not showing in Terminal.app
Browse files Browse the repository at this point in the history
Signed-off-by: Kien Luu <kienluu@kien56.local>
  • Loading branch information
Kien Luu committed Jan 5, 2013
1 parent 1d0b0e2 commit fc0908d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/terminal/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ function set-titles-with-path {
if [[ "$TERM_PROGRAM" == 'Apple_Terminal' ]]; then
printf '\e]7;%s\a' "file://$HOST${absolute_path// /%20}"
# Some Terminals.app may need this instead
printf '\e]2;%s\a' "file://$HOST${absolute_path// /%20}"
else
local abbreviated_path="${absolute_path/#$HOME/~}"
local truncated_path="${abbreviated_path/(#m)?(#c15,)/...${MATCH[-12,-1]}}"
Expand Down

0 comments on commit fc0908d

Please sign in to comment.