mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added missing parenthesis to a few functions.
This commit is contained in:
parent
d1d82c2189
commit
f000d7e39f
2 changed files with 4 additions and 4 deletions
|
|
@ -69,7 +69,7 @@ function set-title-by-command() {
|
|||
autoload -Uz add-zsh-hook
|
||||
|
||||
# Sets the tab and window titles before the prompt is displayed.
|
||||
function set-title-precmd {
|
||||
function set-title-precmd() {
|
||||
if [[ "$TERM_PROGRAM" != "Apple_Terminal" ]] && zstyle -t ':omz:terminal' auto-title; then
|
||||
set-window-title "${(%):-%~}"
|
||||
for kind in tab screen; do
|
||||
|
|
@ -84,7 +84,7 @@ function set-title-precmd {
|
|||
add-zsh-hook precmd set-title-precmd
|
||||
|
||||
# Sets the tab and window titles before command execution.
|
||||
function set-title-preexec {
|
||||
function set-title-preexec() {
|
||||
if zstyle -t ':omz:terminal' auto-title; then
|
||||
set-title-by-command "$2"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue