linuxShortcuts/tmuxStartDicionarios.sh
Bruno Fontes 42344f98a5 Tests, tests and tests
Still not sure why I keep track of those changes, if I don't need them
and do not care about proper handling them.

Anyway, it is here if, some some reason I need it back.
2022-01-22 19:14:01 -03:00

22 lines
630 B
Bash
Executable File

#!/bin/zsh
projectName=dicionarioscc
cd /run/media/bruno/Multimedia/MyDocuments/Development/BrunoFontes/dicionarios.cc/
if [[ $(tmux ls | grep '$projectName') ]]; then
uxterm -T $projectName -geometry 627x927 -e tmux a -t $projectName &
exit
fi
tmux new -d -s $projectName
tmux splitw -ht $projectName
tmux splitw -vt $projectName:0.1
tmux splitw -vt $projectName:0.2
uxterm -T $projectName -geometry 627x927 -e tmux a -t $projectName &
tmux send -t $projectName:0.0 $'nvim\n'
tmux send -t $projectName:0.1 $'make dev\n'
tmux send -t $projectName:0.2 $'tail -f src/dicio.log\n'
tmux send -t $projectName:0.3 $'gss\n'