1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-24 23:00:09 +00: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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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