Closed whi-tw closed 1 year ago
znap's functions directory is not added to $fpath automatically
functions
$fpath
This means that _znap is not available, so completions aren't available for znap itself.
_znap
znap
Adding fpath=(~/.znap/zsh-snap/functions $fpath) to .zshrc after sourcing znap.zsh brings them back
fpath=(~/.znap/zsh-snap/functions $fpath)
.zshrc
znap.zsh
# file: .zshrc [[ -r ~/.znap/zsh-snap/znap.zsh ]] || { git clone --depth 1 -- \ https://github.com/marlonrichert/zsh-snap.git ~/.znap/zsh-snap } source ~/.znap/zsh-snap/znap.zsh
znap completions are available
znap completions are not available:
❯ which _znap _znap not found
Describe the bug
znap's
functions
directory is not added to$fpath
automaticallyThis means that
_znap
is not available, so completions aren't available forznap
itself.Adding
fpath=(~/.znap/zsh-snap/functions $fpath)
to.zshrc
after sourcingznap.zsh
brings them backSteps To Reproduce
Expected behavior
znap
completions are availableObserved behavior
znap
completions are not available:Environment: