Readd _has helper

This commit is contained in:
saibotk 2022-04-17 21:00:39 +02:00
parent 1973fe08cf
commit 51055a2487
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -14,6 +14,12 @@ fi
zstyle ':znap:*' repos-dir ~/.znap
source ~/.znap/znap/znap.zsh
# Helper Functions
# Returns whether the given command is executable or aliased.
_has() {
return $( whence $1 >/dev/null )
}
# autocomplete settings
zstyle ':autocomplete:tab:*' widget-style menu-select
zstyle ':autocomplete:*' fzf-completion yes