fasionchan

读万卷书,行万里路,品万味肴,撸万行码。

iTerm2

技巧

标题

1
2
3
4
5
6
7
8
setTerminalText() {
    local mode=$1; shift
    echo -ne "\033]$mode;$@\007"
}

stt_both () { setTerminalText 0 $@; }
stt_tab () { setTerminalText 1 $@; }
stt_win () { setTerminalText 2 $@; }

Comments