Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename terminal auto-title zstyle for consistency

  • Loading branch information...
commit 6727edd53685560df2c6424ca03e6308eb1a9e5b 1 parent 4e0fc83
@sorin-ionescu sorin-ionescu authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  templates/zshrc.zsh
  2. +2 −2 terminal.zsh
View
2  templates/zshrc.zsh
@@ -18,7 +18,7 @@ zstyle ':omz:*:*' case-sensitive 'no'
zstyle ':omz:*:*' color 'yes'
# Auto set the tab and window titles.
-zstyle ':omz:terminal' auto-title 'yes'
+zstyle ':omz:terminal:auto' title 'yes'
# Set the plugins to load (see $OMZ/plugins/).
zstyle ':omz:load' plugin 'archive' 'git'
View
4 terminal.zsh
@@ -78,7 +78,7 @@ autoload -Uz add-zsh-hook
# Sets the tab and window titles before the prompt is displayed.
function set-title-precmd {
- if [[ "$TERM_PROGRAM" != "Apple_Terminal" ]] && zstyle -t ':omz:terminal' auto-title; then
+ if [[ "$TERM_PROGRAM" != "Apple_Terminal" ]] && zstyle -t ':omz:terminal:auto' title; then
set-window-title "${(%):-%~}"
for kind in tab screen; do
# Left-truncate the current working directory to 15 characters.
@@ -93,7 +93,7 @@ add-zsh-hook precmd set-title-precmd
# Sets the tab and window titles before command execution.
function set-title-preexec {
- if zstyle -t ':omz:terminal' auto-title; then
+ if zstyle -t ':omz:terminal:auto' title; then
set-title-by-command "$2"
fi
}
Please sign in to comment.
Something went wrong with that request. Please try again.