Compare commits

...

3 Commits

Author SHA1 Message Date
Thomas Boyer c8aad5ee56
Merge 01e06b931a into 7a3695aadf 2025-01-12 16:07:42 +01:00
Michele Bologna 7a3695aadf
fix(grc): add linuxbrew path (#12903) 2025-01-12 14:25:00 +01:00
Thomas Boyer 01e06b931a feat(direnv): warn user if direnv not found
Instead of silently not installing the shell hooks, issue a warning (then keep doing nothing).
2024-12-10 15:20:44 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -5,6 +5,7 @@ files=(
/etc/grc.zsh # default
/usr/local/etc/grc.zsh # homebrew darwin-x64
/opt/homebrew/etc/grc.zsh # homebrew darwin-arm64
/home/linuxbrew/.linuxbrew/etc/grc.zsh # linuxbrew
/usr/share/grc/grc.zsh # Gentoo Linux (app-misc/grc)
)