mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
direnv: check if direnv is installed (#8809)
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# Don't continue if direnv is not found
|
||||||
|
command -v direnv &>/dev/null || return
|
||||||
|
|
||||||
_direnv_hook() {
|
_direnv_hook() {
|
||||||
trap -- '' SIGINT;
|
trap -- '' SIGINT;
|
||||||
eval "$(direnv export zsh)";
|
eval "$(direnv export zsh)";
|
||||||
|
|||||||
Reference in New Issue
Block a user