Update .tmux script

- Open nvim without `+GoToFile`
- Run PHPUnit in watch mode
This commit is contained in:
Oliver Davies 2024-01-15 08:00:00 +00:00
parent ea2c228806
commit f7487a6bbe

4
.tmux
View file

@ -16,9 +16,11 @@ fi
tmux new-session -d -s "${session_name}" -n vim -c "${session_path}"
# 1. Main window: Vim, server, shell
tmux send-keys -t "${session_name}:vim" "nvim +GoToFile" Enter
tmux split-pane -t "${session_name}:vim" -h -c "${session_path}" -p 40
tmux send-keys -t "${session_name}:vim" "nvim" Enter
tmux send-keys -t "${session_name}:vim.right" "php -S 0.0.0.0:9000 -t web" Enter
tmux split-pane -t "${session_name}:vim" -c "${session_path}" -v
tmux send-keys -t "${session_name}:vim.bottom-right" "watch-changes web/modules/custom phpunit" Enter
# 2. General shell use.
tmux new-window -t "${session_name}" -c "${session_path}"