mirror of
https://github.com/Matir/skel.git
synced 2026-07-24 13:16:56 -07:00
Fix iterm integration for zsh prompt
This commit is contained in:
@@ -132,7 +132,12 @@ case $TERM in
|
|||||||
else
|
else
|
||||||
# this will also work in tmux but is not what we want
|
# this will also work in tmux but is not what we want
|
||||||
# Set the terminal title to include the command being run
|
# Set the terminal title to include the command being run
|
||||||
print -Pn "\e]0;%n@%m: %~ ($cmd)\a"
|
# Skip adding (cmd) in iTerm2 — shell integration already injects the job name
|
||||||
|
if [[ -z "$ITERM_SESSION_ID" ]]; then
|
||||||
|
print -Pn "\e]0;%n@%m: %~ ($cmd)\a"
|
||||||
|
else
|
||||||
|
print -Pn "\e]0;%n@%m: %~\a"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
# Add the hooks to zsh
|
# Add the hooks to zsh
|
||||||
|
|||||||
Reference in New Issue
Block a user