1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

direnv: check if direnv is installed (#8809)

This commit is contained in:
Michael Klemm
2020-05-22 18:29:52 +02:00
committed by GitHub
parent 570729f221
commit a3ea785cf5

View File

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