diff options
author | Alan Pearce | 2014-04-10 20:07:42 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-10 20:07:42 +0100 |
commit | 6a4ee1656eba28db17bafb7e998d86b1353db95d (patch) | |
tree | b06f8f42a3b49d715c031869553803e03da838b2 /zsh | |
parent | 8c278ce7d7f22486fcbb3d9eed826c49b690b895 (diff) | |
download | nixfiles-6a4ee1656eba28db17bafb7e998d86b1353db95d.tar.lz nixfiles-6a4ee1656eba28db17bafb7e998d86b1353db95d.tar.zst nixfiles-6a4ee1656eba28db17bafb7e998d86b1353db95d.zip |
zsh: Only run direnv when installed
Diffstat (limited to 'zsh')
-rwxr-xr-x | zsh/environment.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zsh/environment.zsh b/zsh/environment.zsh index 0183f728..6279c1fd 100755 --- a/zsh/environment.zsh +++ b/zsh/environment.zsh @@ -47,4 +47,6 @@ esac export os -eval "$(direnv hook zsh)" +if [[ $commands[direnv] ]] + eval "$(direnv hook zsh)" +fi |