easier cheats
This commit is contained in:
4
.zshrc
4
.zshrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user