Zsh: Rename jobs_dir variable and make it local
This commit is contained in:
parent
245fba9192
commit
bfecb170c2
|
@ -104,8 +104,9 @@ if tput tsl > /dev/null; then
|
||||||
# Write command and args to terminal title.
|
# Write command and args to terminal title.
|
||||||
# This is seen while the shell waits for a command to complete.
|
# This is seen while the shell waits for a command to complete.
|
||||||
function _my_title_preexec() {
|
function _my_title_preexec() {
|
||||||
print -Pnv jobs_dir "%(1j,%j job%(2j|s|); ,)%~"
|
local _my_jobs_dir
|
||||||
printf "\e]0;%s: %s; %s\a" "${HOST}" "${1}" "${jobs_dir}"
|
print -Pnv _my_jobs_dir "%(1j,%j job%(2j|s|); ,)%~"
|
||||||
|
printf "\e]0;%s: %s; %s\a" "${HOST}" "${1}" "${_my_jobs_dir}"
|
||||||
}
|
}
|
||||||
add-zsh-hook preexec _my_title_preexec
|
add-zsh-hook preexec _my_title_preexec
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user