prezto/modules/terminal
Derek Chen-Becker b90e7dd400 Allow the terminal module auto-title for tmux
Allows the user to selectively enable auto window titles in
tmux. Defaults to not using window titles in tmux.
2015-02-15 12:58:30 -07:00
..
init.zsh Allow the terminal module auto-title for tmux 2015-02-15 12:58:30 -07:00
README.md Only one newline at end of file 2014-10-09 23:38:15 -04: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'

Auto titling is disabled inside terminal multiplexers, except inside dvtm, since it interferes with window names defined in configuration files and profile managers.

To format terminal window and tab titles, add the following to zpreztorc:

zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
zstyle ':prezto:module:terminal:tab-title' format '%m: %s'

%s will be replaced with the current working directory path or the currently executing program name.

For a list of sequences, see Expansion of Prompt Sequences.

Functions

  • set-tab-title sets the terminal tab title.
  • set-window-title sets the terminal or terminal multiplexer window title.

Authors

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