This commit is contained in:
2024-08-15 21:30:52 -04:00
parent 86e8429437
commit 0c2d9d462a
6 changed files with 164 additions and 37 deletions

View File

@@ -1,12 +0,0 @@
man
ls
grep
cp
mv
rm
ssh
git
stow
docker
docker-compose
make

View File

@@ -1,8 +0,0 @@
golang
c
cpp
lua
python
tmux
bash
zsh

View File

@@ -1,14 +0,0 @@
#!/usr/bin/env bash
selected=`cat ~/.scripts/tmux-cht-lang ~/.scripts/tmux-cht-command | fzf`
if [[ -z $selected ]]; then
exit 0
fi
read -p "Enter Query: " query
if grep -qs "$selected" ~/.tmux-cht-languages; then
query=`echo $query | tr ' ' '+'`
tmux neww bash -c "echo \"curl cht.sh/$selected/$query/\" & curl cht.sh/$selected/$query & while [ : ]; do sleep 1; done"
else
tmux neww bash -c "curl -s cht.sh/$selected~$query | less"
fi