dotfiles

My personal dotfiles
git clone git://pcardensab.com/dotfiles
Log | Files | Refs | Submodules | README

thesis (739B)


      1 #!/bin/bash
      2 
      3 mkdir -p $HOME/dox/dev/thesis
      4 cd $HOME/dox/dev/thesis
      5 
      6 if ! tmux has-session -t thesis 2>/dev/null; then
      7 	tmux new-session -s thesis -n editor -d
      8 
      9 	tmux send-keys -t thesis:0.0 'vim --servername thesis -S ${XDG_CONFIG_HOME}/vim/session/thesis.vim' C-m
     10 
     11 	tmux new-window -t thesis -n pdftex
     12 	mkdir -p output
     13 	tmux send-keys -t thesis:1.0 'while sleep 0.5s; do git ls-files --cached --other --exclude-standard | entr -ccds "pdftex -output-directory=output -synctex=1 -interaction=nonstopmode -halt-on-error document.tex" ; done' C-m
     14 
     15 	tmux new-window -t thesis -c /usr/local/texlive/2022/ -n texlive
     16 
     17 	tmux select-window -t thesis:1
     18 	tmux select-window -t thesis:0
     19 fi
     20 
     21 if [ -z $TMUX ]; then
     22 	tmux attach -t thesis
     23 fi
     24 git status