summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2022-02-02 09:56:16 +1300
committerDavid Phillips <david@yeah.nah.nz>2022-02-02 09:56:16 +1300
commitd117982f6decf3289088f41acc16446f1602c7db (patch)
tree2cff0a5ed47febe5e60a84971762c8e17c110820
parent00ee16522d47772ebdc16b2787566c63ce1af1ce (diff)
downloaddotfiles-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--environment2
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)