This commit is contained in:
2022-01-26 20:42:58 +01:00
parent 7ba32f03f5
commit 041b6cd367
14 changed files with 416 additions and 289 deletions

View File

@ -0,0 +1,13 @@
languages=`echo "golang lua cpp c typescript nodejs" | tr ' ' '\n'`
core_utils=`echo "xargs find mv sed awk" | tr ' ' '\n'`
function cht(){
selected=`printf "$languages\n$core_utils" | fzf`
read query\?"query:"
if printf $languages | grep -qs $selected; then
curl cht.sh/$selected/`echo $query | tr ' ' '+'`
else
curl cht.sh/$selected~$query
fi
}