From 141bfd8c1e4fc728914bc8a5cd6378c5b92c5e52 Mon Sep 17 00:00:00 2001 From: Olaf Conradi Date: Mon, 28 Apr 2014 04:25:42 +0200 Subject: [PATCH] Support auto titling within terminal multiplexers --- modules/terminal/README.md | 4 +++- modules/terminal/init.zsh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/terminal/README.md b/modules/terminal/README.md index 848ec78..a6d2552 100644 --- a/modules/terminal/README.md +++ b/modules/terminal/README.md @@ -15,7 +15,9 @@ directory, add the following to *zpreztorc*: Auto titling is disabled inside terminal multiplexers, except inside dvtm, since 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 diff --git a/modules/terminal/init.zsh b/modules/terminal/init.zsh index b63e462..73d64bc 100644 --- a/modules/terminal/init.zsh +++ b/modules/terminal/init.zsh @@ -124,8 +124,9 @@ then fi # Set up non-Apple terminals. -if zstyle -t ':prezto:module:terminal' auto-title \ - && ( ! [[ -n "$STY" || -n "$TMUX" ]] ) +if zstyle -t ':prezto:module:terminal' auto-title 'always' \ + || (zstyle -t ':prezto:module:terminal' auto-title \ + && ( ! [[ -n "$STY" || -n "$TMUX" ]] )) then # Sets the tab and window titles before the prompt is displayed. add-zsh-hook precmd _terminal-set-titles-with-path