dotfiles/home/user/.tmux/dotfiles
2024-10-14 00:14:17 +03:00

18 lines
597 B
Bash
Executable File

#!/usr/bin/env bash
set -x
readonly SESSION=dotfiles
readonly MAINW=1
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}.2" '$EDITOR' Enter
tmux send-keys -t "${SESSION}:${MAINW}.2" ':Telescope find_files' Enter
fi
tmux switch-client -t "${SESSION}"