direnv: check if direnv is installed (#8809)

pull/8960/head
Michael Klemm 2020-05-22 18:29:52 +02:00 committed by GitHub
parent 570729f221
commit a3ea785cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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