dwarvesf / til

Today I Learned. Our knowledge hub. List out what we've learned everyday, organized.
29 stars 1 forks source link

zsh: set iTerm window title #3

Open tieubao opened 7 years ago

tieubao commented 7 years ago

Add those lines to your .zshrc

set-window-title() {
    window_title="\033]0;${PWD##*/}\007"
    echo -ne "$window_title"
}

PR_TITLEBAR=''
set-window-title
add-zsh-hook precmd set-window-title
screen shot 2017-02-08 at 1 00 04 am