Tag: iTerm2
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 $@ }