From c393f98c856384caa814d60910aca257dfb78957 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 1 Jun 2023 09:49:40 -0500 Subject: [PATCH] add convience funtion for cht.sh --- home/private_dot_config/zsh/functions/q | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 home/private_dot_config/zsh/functions/q diff --git a/home/private_dot_config/zsh/functions/q b/home/private_dot_config/zsh/functions/q new file mode 100644 index 0000000..b134d86 --- /dev/null +++ b/home/private_dot_config/zsh/functions/q @@ -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