2024-05-21 13:55:46 +03:00

17 lines
437 B
Bash
Executable File

#!/usr/bin/env bash
set -x
SESSION=dotfiles
MAINW=1
WORKING_PROJECT="$HOME/dotfiles"
if ! tmux has-session -t "$SESSION"; then
tmux new-session -s "$SESSION" -d -n "$MAINW" -c "$WORKING_PROJECT"
tmux send-keys -t "$SESSION:$MAINW" '$EDITOR' Enter
tmux send-keys -t "$SESSION:$MAINW" , f f
tmux splitw -t "$SESSION:$MAINW" -d -b -h -l $_tmux_new_pane_size -c '#{pane_current_path}'
fi
tmux switch-client -t "$SESSION"