mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Simplified option variables for greater flexibility.
This commit is contained in:
parent
8619dd28bc
commit
05c94e2dd5
10 changed files with 25 additions and 25 deletions
|
|
@ -69,7 +69,7 @@ autoload -Uz add-zsh-hook
|
|||
|
||||
# Sets the tab and window titles before the prompt is displayed.
|
||||
function set-title-precmd {
|
||||
if ! check-bool "$DISABLE_AUTO_TITLE"; then
|
||||
if check-bool "$AUTO_TITLE"; then
|
||||
set-window-title "${(%):-%~}"
|
||||
for kind in tab screen; do
|
||||
# Left-truncate the current working directory to 15 characters.
|
||||
|
|
@ -81,7 +81,7 @@ add-zsh-hook precmd set-title-precmd
|
|||
|
||||
# Sets the tab and window titles before command execution.
|
||||
function set-title-preexec {
|
||||
if ! check-bool "$DISABLE_AUTO_TITLE"; then
|
||||
if check-bool "$AUTO_TITLE"; then
|
||||
set-title-by-command "$2"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue