osx - How do I properly set the title in Terminal using zsh? -
i have been trying set title of terminal appropriately, haven't had success. currently, looks this, , if change directory, desktop, become this.
i prefer if title had current folder , process. i've tried various methods, such here, no success.
i'm using default terminal app in yosemite, , running zsh.
if don't want in window title other current directory , process (which there default in terminal.app), can following @ end of ~/.zshrc
:
precmd () {print -pn "\e]0;\a"}
example:
i'm afraid can't rid of terminal size though since appears hard-coded terminal.app (maybe i'm wrong).
for more information, see how change title of xterm: examples different shells.
by way, recommend iterm2 instead of terminal.app. swiss army knife of terminal emulators, infinitely better terminal.app, highly customizable.
Comments
Post a Comment