Terminal title setting plugin for zsh with no options
As I'm now using https://github.com/romkatv/zsh4humans which does terminal title setting on it's own I have no need anymore for this repository.
The plugin is based on a zsh script posted by romkatv in a comment here which was put under the same license as powerlevel10k. See the copy of the original license or the current license.
Only tested with zinit.
Put these lines into your .zshrc
(after you sourced zinit
):
-
Recommended way (with turbo mode; using the newer
for
syntax):zinit wait lucid nocd atload"!set-term-title-precmd" for \ AnimiVulpis/zsh-terminal-title
wait
to activate turbo modelucid
to prevent "Loaded" message from appearingnocd
to prevent the plugin directory in the window titleatload"!set-term-title-precmd"
to call the title setting function after plugin load
-
If you don't want to use turbo mode you can
zinit light-mode for \ AnimiVulpis/zsh-terminal-title
light-mode
to load the plugin without investigating
More information about zinit modifiers.
I try to adhere to the best practices pointed out here
- Support configuration options
- Adhere to function name prefixes proposed by zdharma