Tag: iTerm2
/Library/Preferences/com.googlecode.iterm2.plistをコピーするのが簡単。
on_exit () { echo "\033]50;SetProfile=Default\a" } ssh() { case $@ in *sec* | *carinfo* | *auc* ) trap on_exit EXIT echo 'please wait login .....' echo "\033]50;SetProfile=Dark\a" ;; *) esac /usr/bin/ssh $@ }
$ echo -ne "\e]1;TAB_NAME\a"
precmd() { print -Pn "\e]1;%n@%m\a" }command line - Change iTerm2 window and tab titles in zsh - Super User
export PROMPT_COMMAND="echo -ne '\033]0;${USER}@${HOSTNAME}\007';$PROMPT_COMMAND"