mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 13:58:00 +00:00
Support auto titling within terminal multiplexers
This commit is contained in:
parent
b5bcc89ae6
commit
141bfd8c1e
@ -15,7 +15,9 @@ directory, add the following to *zpreztorc*:
|
|||||||
|
|
||||||
Auto titling is disabled inside terminal multiplexers, except inside dvtm, since
|
Auto titling is disabled inside terminal multiplexers, except inside dvtm, since
|
||||||
it interferes with window names defined in configuration files and profile
|
it interferes with window names defined in configuration files and profile
|
||||||
managers.
|
managers. This can be overridden by setting it to `always`.
|
||||||
|
|
||||||
|
zstyle ':prezto:module:terminal' auto-title 'always'
|
||||||
|
|
||||||
### Title formats
|
### Title formats
|
||||||
|
|
||||||
|
@ -124,8 +124,9 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set up non-Apple terminals.
|
# Set up non-Apple terminals.
|
||||||
if zstyle -t ':prezto:module:terminal' auto-title \
|
if zstyle -t ':prezto:module:terminal' auto-title 'always' \
|
||||||
&& ( ! [[ -n "$STY" || -n "$TMUX" ]] )
|
|| (zstyle -t ':prezto:module:terminal' auto-title \
|
||||||
|
&& ( ! [[ -n "$STY" || -n "$TMUX" ]] ))
|
||||||
then
|
then
|
||||||
# Sets the tab and window titles before the prompt is displayed.
|
# Sets the tab and window titles before the prompt is displayed.
|
||||||
add-zsh-hook precmd _terminal-set-titles-with-path
|
add-zsh-hook precmd _terminal-set-titles-with-path
|
||||||
|
Loading…
Reference in New Issue
Block a user