mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
2 Commits
19b15e9aea
...
bf46c4f28f
Author | SHA1 | Date |
---|---|---|
|
bf46c4f28f | |
|
01e06b931a |
|
@ -1,5 +1,8 @@
|
|||
# Don't continue if direnv is not found
|
||||
command -v direnv &>/dev/null || return
|
||||
# If direnv is not found, don't continue and print a warning
|
||||
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() {
|
||||
trap -- '' SIGINT;
|
||||
|
|
Loading…
Reference in New Issue