diff options
author | Alan Pearce | 2014-04-10 20:10:05 +0100 |
---|---|---|
committer | Alan Pearce | 2014-04-10 20:10:05 +0100 |
commit | 70dbdab03afdd27279c300bf3c3ff4b90e183bc6 (patch) | |
tree | 08d3aa2dbf09d762d9b651cea20518ff7aca087a | |
parent | db9f688ce7596d8a25a85599a7eaa6911c60aff4 (diff) | |
download | dotfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.tar.lz dotfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.tar.zst dotfiles-70dbdab03afdd27279c300bf3c3ff4b90e183bc6.zip |
Use correct switch for testing commands
-rwxr-xr-x | install | 2 | ||||
-rwxr-xr-x | zsh/environment.zsh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/install b/install index 20e72e5..9176902 100755 --- a/install +++ b/install @@ -49,7 +49,7 @@ then install-dot projects/dwm/ $target/dwm/* fi -if [[ -z $commands[emacs] ]] +if [[ -s $commands[emacs] ]] then emacs --batch --eval '(batch-byte-recompile-directory 0)' ~/.emacs.d/ fi diff --git a/zsh/environment.zsh b/zsh/environment.zsh index 1519419..49e9b21 100755 --- a/zsh/environment.zsh +++ b/zsh/environment.zsh @@ -47,6 +47,6 @@ esac export os -if [[ -z $commands[direnv] ]] +if [[ -s $commands[direnv] ]] eval "$(direnv hook zsh)" fi |