mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(direnv): warn user if command not found (#12840)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
@@ -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 (( ! $+commands[direnv] )); 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user