mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
direnv: check if direnv is installed (#8809)
This commit is contained in:
parent
570729f221
commit
a3ea785cf5
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
|||
# Don't continue if direnv is not found
|
||||
command -v direnv &>/dev/null || return
|
||||
|
||||
_direnv_hook() {
|
||||
trap -- '' SIGINT;
|
||||
eval "$(direnv export zsh)";
|
||||
|
|
Loading…
Reference in a new issue