mirror of https://github.com/ohmyzsh/ohmyzsh.git
feat(direnv): warn user if direnv not found
Instead of silently not installing the shell hooks, issue a warning (then keep doing nothing).
This commit is contained in:
parent
69a6359f7c
commit
01e06b931a
|
@ -1,5 +1,8 @@
|
||||||
# Don't continue if direnv is not found
|
# If direnv is not found, don't continue and print a warning
|
||||||
command -v direnv &>/dev/null || return
|
if ! command -v direnv &>/dev/null; then
|
||||||
|
echo "Warning: direnv not found. Please install direnv and ensure it's in your PATH before using this plugin."
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
_direnv_hook() {
|
_direnv_hook() {
|
||||||
trap -- '' SIGINT;
|
trap -- '' SIGINT;
|
||||||
|
|
Loading…
Reference in New Issue