This commit is contained in:
2024-07-25 11:56:10 -04:00
parent f2d3faf299
commit f60304a239
6 changed files with 22 additions and 1 deletions

View File

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

View File

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

14
scripts/.scripts/tmux-cht.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/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