fix tmux/dotfiles

This commit is contained in:
thek4n 2026-01-12 08:28:44 +03:00
parent 6c5fbd775c
commit 26ec6aff99

View File

@ -9,7 +9,7 @@ readonly WORKING_PROJECT="${HOME}/dotfiles"
if ! tmux has-session -t="${SESSION}"; then if ! tmux has-session -t="${SESSION}"; then
tmux new-session -s "${SESSION}" -d -n "${MAINW}" -c "${WORKING_PROJECT}" tmux new-session -s "${SESSION}" -d -n "${MAINW}" -c "${WORKING_PROJECT}"
tmux splitw -t "${SESSION}:${MAINW}" -d -b -h -l "${_tmux_other_pane_size}" -c '#{pane_current_path}' tmux splitw -t "${SESSION}:${MAINW}" -d -b -h -l "${_tmux_other_pane_size}" -c "${WORKING_PROJECT}"
sleep 0.3 sleep 0.3
tmux send-keys -t "${SESSION}:${MAINW}.1" "git pull --rebase && git push" Enter tmux send-keys -t "${SESSION}:${MAINW}.1" "git pull --rebase && git push" Enter
tmux send-keys -t "${SESSION}:${MAINW}.2" '$EDITOR' Enter tmux send-keys -t "${SESSION}:${MAINW}.2" '$EDITOR' Enter