aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:12:15 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:12:15 +1200
commit7e7f16ae7040eb89a4103ca38ca571174ad4be67 (patch)
tree00468cc63129e7391b82db2eef1591b111aa6cdf /sh/shrc.d
parentMerge branch 'release/v5.32.0' into develop (diff)
downloaddotfiles-7e7f16ae7040eb89a4103ca38ca571174ad4be67.tar.gz
dotfiles-7e7f16ae7040eb89a4103ca38ca571174ad4be67.zip
Prevent me from using `which`
Diffstat (limited to 'sh/shrc.d')
-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
+}