easier cheats

This commit is contained in:
JGill
2020-02-25 17:55:49 +10:30
parent 36655a87b2
commit ab6e45ee4f

4
.zshrc
View File

@@ -160,10 +160,10 @@ https() { # make httpie use https
# cheat sheets (github.com/chubin/cheat.sh), find out how to use commands
# example 'cheat tar'
# for language specific question supply 2 args first for language, second as the question
# eample cheat python execute+external+program
# eample: cheat python3 execute external program
cheat() {
if [ "$2" ]; then
curl "https://cheat.sh/$1/$2"
curl "https://cheat.sh/$1/$2+$3+$4+$5+$6+$7+$8+$9+$10"
else
curl "https://cheat.sh/$1"
fi