A zsh plugin for informative terminal window titles
brew install olets/tap/zsh-window-title
With a shell plugin manager
Install zsh-window-title with a zsh plugin manager. Each has their own way of doing things. See your package manager's documentation or the zsh plugin manager plugin installation procedures gist.
After adding the plugin to the manager, restart zsh:
- Download the latest
- Put the file
zsh-window-titlein a directory in your
source zsh-window-titleto your
source the/path/to/zsh-window-titleto your
- Put the file
- Restart zsh:
shell exec zsh
Once zsh-window-title is installed, your terminal window title will be
<parent dir>/<current dir>when nothing's running
<parent dir>/<current dir> - <first word of last run command>when something's running
macOS Terminal.app users
By default macOS's Terminal app will control the window title. Disable that by:
Preferences > Profiles > Window > Title --> uncheck everything.
By default OMZ will control the terminal window title. Disable that by adding
zwt restore-defaults (help | --help | -h) (version | --version | -v)
zwt restore-defaultsRestore options to their defaults in the current session. See Options.
zwt (help | --help | -h)Show the manpage.
zwt (version | --version | -v)Print the command name and version.
||If non-zero, print hook debugging messages|
||How many directory levels to display|
||If non-zero, print CLI debugging messages|
See the CHANGELOG file.
See the ROADMAP file.
Thanks for your interest. Contributions are welcome!
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Check the Issues to see if your topic has been discussed before or if it is being worked on.
Please read CONTRIBUTING.md before opening a pull request.
zsh-window-title by Henry Bley-Vroman is licensed under CC BY-NC-SA 4.0 with a human rights condition from Hippocratic License 2.1. Persons interested in using or adapting this work for commercial purposes should contact the author.
For the full text of the license, see the LICENSE file.