mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-22 11:23:16 +00:00
Immunity to setopt nofunctionargzero
This commit is contained in:
parent
d289aecfe0
commit
5a435d3d83
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@
|
|||
# to ~/.zshrc.
|
||||
#
|
||||
|
||||
# This gives immunity to functionargzero being unset
|
||||
# _ will be set to last argument to source builtin
|
||||
PLUGIN_UNDERSCORE="$_"
|
||||
[ "$0" != "$PLUGIN_UNDERSCORE" ] && 0="$PLUGIN_UNDERSCORE"
|
||||
|
||||
REPO_DIR="${0%/*}"
|
||||
if [[ -z "$ZPLG_CUR_PLUGIN" && "${fpath[(r)$REPO_DIR]}" != $REPO_DIR ]]; then
|
||||
fpath+=( "$REPO_DIR" )
|
||||
|
|
Loading…
Reference in a new issue