summaryrefslogtreecommitdiffstatshomepage
path: root/cheat.sh/install
diff options
context:
space:
mode:
Diffstat (limited to 'cheat.sh/install')
-rwxr-xr-xcheat.sh/install7
1 files changed, 7 insertions, 0 deletions
diff --git a/cheat.sh/install b/cheat.sh/install
new file mode 100755
index 0000000..aa0b9ec
--- /dev/null
+++ b/cheat.sh/install
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+if [ ! "$(which cht.sh)" ]; then
+ mkdir -p ~/.local/bin
+ curl https://cht.sh/:cht.sh >~/.local/bin/cht.sh
+ chmod +x ~/.local/bin/cht.sh
+fi