aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/which.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:15:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:15:43 +1200
commit9e7d95c4946d850d368ab16dedf77f7dfd6d3b1e (patch)
tree5f31caad6b071d8b0bde1d0591b5ff7f318bdb6d /sh/shrc.d/which.sh
parentMerge branch 'release/v5.32.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-5.33.0.tar.gz (sig)
dotfiles-5.33.0.zip
Merge branch 'release/v5.33.0'v5.33.0
* release/v5.33.0: Limit scope of UTC function Add bang to function declaration so it redefines Prevent me from using `which`
Diffstat (limited to 'sh/shrc.d/which.sh')
-rw-r--r--sh/shrc.d/which.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sh/shrc.d/which.sh b/sh/shrc.d/which.sh
new file mode 100644
index 00000000..9d8c899a
--- /dev/null
+++ b/sh/shrc.d/which.sh
@@ -0,0 +1,4 @@
+which() {
+ printf >&2 'Whichcraft detected! Did you mean: command -v %s\n' "$*"
+ return 2
+}