tmux session

This commit is contained in:
thek4n 2025-04-01 15:45:46 +03:00
parent b9f5afa0b6
commit da43e8cc09

View File

@ -10,9 +10,9 @@ readonly WORKING_PROJECT="${HOME}/dotfiles"
if ! tmux has-session -t "${SESSION}"; then
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 send-keys -t "${SESSION}:${MAINW}.1" "git pull && 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" ':Telescope find_files' Enter
fi
tmux switch-client -t "${SESSION}"
tmux switch-client -t "${SESSION}"