diff --git a/pure.zsh b/pure.zsh index 80f0a8e2..c8752ba2 100644 --- a/pure.zsh +++ b/pure.zsh @@ -56,6 +56,9 @@ prompt_pure_check_cmd_exec_time() { prompt_pure_set_title() { setopt localoptions noshwordsplit + # Allow disabling title management. + zstyle -T ":prompt:pure:title" show || return + # Emacs terminal does not support settings the title. (( ${+EMACS} || ${+INSIDE_EMACS} )) && return diff --git a/readme.md b/readme.md index bad4fd49..330f3372 100644 --- a/readme.md +++ b/readme.md @@ -99,6 +99,10 @@ You can set Pure to only `git fetch` the upstream branch of the current local br `zstyle :prompt:pure:environment:nix-shell show no` +Automatic terminal title management can be disabled if you want to set your own tab or window titles: + +`zstyle :prompt:pure:title show no` + ## Colors As explained in ZSH's [manual](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting), color values can be: