prezto/modules/terminal
Caleb Epstein 02f7bfe7f2 Added user-controllable prefix for window and tab titles.
These new styles that may be used to add a prefix to the window and
tab title strings.  These undergo prompt expansion.

  zstyle ':prezto:module:terminal' prefix '%n @ %m: '
  zstyle ':prezto:module:terminal' tabprefix '%m: '
2012-11-16 15:33:46 -05:00
..
init.zsh Added user-controllable prefix for window and tab titles. 2012-11-16 15:33:46 -05:00
README.md Added user-controllable prefix for window and tab titles. 2012-11-16 15:33:46 -05:00

Terminal

Sets terminal window and tab titles.

Settings

Auto-Title

To auto set the terminal window and tab titles with the current command or directory, add the following to zpreztorc:

zstyle ':prezto:module:terminal' auto-title 'yes'

A user-defined prefix may be added to the title using the following styles, which undergo prompt expansion:

zstyle ':prezto:module:terminal' prefix '%n @ %m: '
zstyle ':prezto:module:terminal' tabprefix '%n @ %m: '

Functions

  • set-screen-window-title sets the screen title.
  • set-terminal-tab-title sets the terminal tab title.
  • set-terminal-window-title sets the terminal window title.
  • set-titles-with-command sets the screen and terminal titles with a given command.
  • set-titles-with-path sets the screen and terminal titles with a given path.

Authors

The authors of this module should be contacted via the issue tracker.