commit 16b380ca78d874c4e5964febe9af540b2695fd1c parent e17e6b1ee4a7271f8a15de11bac5912a36c724e2 Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Fri, 29 Nov 2024 02:00:35 -0500 .local/bin: updated thesis script Diffstat:
| M | .local/bin/thesis | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.local/bin/thesis b/.local/bin/thesis @@ -6,7 +6,7 @@ cd $HOME/dox/dev/thesis if ! tmux has-session -t thesis 2>/dev/null; then tmux new-session -s thesis -n editor -d - tmux send-keys -t thesis:0.0 'sleep 0.5s; vim --servername thesis -S ${XDG_CONFIG_HOME}/vim/session/thesis.vim' C-m + tmux send-keys -t thesis:0.0 'vim --servername thesis -S ${XDG_CONFIG_HOME}/vim/session/thesis.vim' C-m tmux new-window -t thesis -n pdftex mkdir -p output @@ -18,5 +18,7 @@ if ! tmux has-session -t thesis 2>/dev/null; then tmux select-window -t thesis:0 fi -tmux attach -t thesis +if [ -z $TMUX ]; then + tmux attach -t thesis +fi git status