lc (344B)
1 cd ~/dox/dev/leetcode 2 if ! tmux has-session -t lc 2>/dev/null; then 3 tmux new-session -s lc -n main -d 'bash --rcfile <(cat ~/.bashrc activate)' 4 5 tmux new-window -t lc:1 -n activate -d 6 tmux send-keys -t lc:1.0 'vim activate' C-m 7 8 tmux new-window -t lc:2 -n bin/lc -d 9 tmux send-keys -t lc:2.0 'vim ~/.local/bin/lc' C-m 10 fi 11 12 tmux attach -t lc