diff options
author | David Phillips <david@yeah.nah.nz> | 2022-02-02 09:56:16 +1300 |
---|---|---|
committer | David Phillips <david@yeah.nah.nz> | 2022-02-02 09:56:16 +1300 |
commit | d117982f6decf3289088f41acc16446f1602c7db (patch) | |
tree | 2cff0a5ed47febe5e60a84971762c8e17c110820 | |
parent | 00ee16522d47772ebdc16b2787566c63ce1af1ce (diff) | |
download | dotfiles-d117982f6decf3289088f41acc16446f1602c7db.tar.xz |
Replace `where` with bash-compatible `hash`
Bash throws a wonky on `where` while zsh was fine. Simpler to just use
`hash` like this since AFAICT it will be mostly equivalent.
-rw-r--r-- | environment | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment b/environment index e10a5c8..4952a08 100644 --- a/environment +++ b/environment @@ -1,7 +1,7 @@ #!/bin/sh bin_available() { - where "$1" | grep -vq ccache + hash "$1" 2>/dev/null } export GPG_TTY=$(tty) |