commit 812f1e94ccbc3ea79014f0e22769caaa6d93e6f3 parent 2e5461af3466de54183aaaf04496711ddeb51a7b Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Tue, 19 Jul 2022 19:56:59 -0500 Update thesis: One pane per window Diffstat:
| M | linux/.local/bin/thesis | | | 11 | +++++------ |
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/linux/.local/bin/thesis b/linux/.local/bin/thesis @@ -4,18 +4,17 @@ mkdir -p $HOME/Documents/dev/thesis cd $HOME/Documents/dev/thesis if ! tmux has-session -t thesis 2>/dev/null; then - tmux new-session -s thesis -n main -d - - tmux split-window -h -t thesis - tmux select-layout -t thesis main-horizontal + tmux new-session -s thesis -n editor -d tmux send-keys -t thesis:0.0 'sleep 0.5s; vim --servername thesis -S ~/.vim/session/thesis.vim' C-m - tmux send-keys -t thesis:0.1 'while sleep 0.5s; do git ls-files --cached --other -X .gitignore | entr -ccds "pdftex -output-directory=/tmp -synctex=1 -interaction=nonstopmode -halt-on-error document.tex | head -n -2" ; done' C-m + + tmux new-window -t thesis -n pdftex + tmux send-keys -t thesis:1.0 'while sleep 0.5s; do git ls-files --cached --other -X .gitignore | entr -ccds "pdftex -output-directory=/tmp -synctex=1 -interaction=nonstopmode -halt-on-error document.tex" ; done' C-m tmux new-window -t thesis -c /usr/local/texlive/2022/ -n texlive + tmux select-window -t thesis:1 tmux select-window -t thesis:0 - tmux select-pane -t thesis:0.0 fi tmux attach -t thesis