mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-12-01 02:59:50 +00:00
Release 2.24.0
This commit is contained in:
1 parent
e1565398f4
commit
2b3b0558ea
7 files changed
+51
-13
No files matched your search
@@ -1095,7 +1095,17 @@ typeset -A opt_args
|
||||
|
||||
if [[ $zsh_eval_context[-1] == eval ]]; then
|
||||
# eval/source/. command, register function for later
|
||||
compdef _shtab_ahriman -N ahriman
|
||||
_shtab_ahriman_register() {
|
||||
# `compdef` is defined by `compinit`
|
||||
if (( $+functions[compdef] )); then
|
||||
compdef _shtab_ahriman -N ahriman
|
||||
# drop registration hook (avoid multiple `compdef` calls)
|
||||
add-zsh-hook -d precmd _shtab_ahriman_register
|
||||
fi
|
||||
}
|
||||
# register completer before next prompt
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook precmd _shtab_ahriman_register
|
||||
else
|
||||
# autoload from fpath, call function directly
|
||||
_shtab_ahriman "$@"
|
||||
|
||||
Reference in new issue
Block a user