add convience funtion for cht.sh
This commit is contained in:
parent
8fee06b0f6
commit
c393f98c85
1 changed files with 8 additions and 0 deletions
8
home/private_dot_config/zsh/functions/q
Normal file
8
home/private_dot_config/zsh/functions/q
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
if [ $# -eq 0 ];
|
||||||
|
then
|
||||||
|
curl -s cheat.sh | less -R
|
||||||
|
else
|
||||||
|
curl -s cheat.sh/${@} | less -R
|
||||||
|
fi
|
Loading…
Reference in a new issue