mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
users/15864: turn zsh_directory_name into a hook
This commit is contained in:
parent
cc69ecfb9e
commit
f2dca9e155
9 changed files with 148 additions and 62 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Add to HOOK the given FUNCTION.
|
||||
# HOOK is one of chpwd, precmd, preexec, periodic, zshaddhistory,
|
||||
# zshexit (the _functions subscript is not required).
|
||||
# zshexit, zsh_directory_name (the _functions subscript is not required).
|
||||
#
|
||||
# With -d, remove the function from the hook instead; delete the hook
|
||||
# variable if it is empty.
|
||||
|
|
@ -15,7 +15,10 @@
|
|||
emulate -L zsh
|
||||
|
||||
local -a hooktypes
|
||||
hooktypes=(chpwd precmd preexec periodic zshaddhistory zshexit)
|
||||
hooktypes=(
|
||||
chpwd precmd preexec periodic zshaddhistory zshexit
|
||||
zsh_directory_name
|
||||
)
|
||||
|
||||
local opt
|
||||
local -a autoopts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue