mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-15 06:32:40 +00:00
feat: Updates tmux-sessionator how it spawns the editor window so it doesn't kill the pane on exit.
This commit is contained in:
@@ -78,7 +78,8 @@ fi
|
|||||||
|
|
||||||
# Create a session if it doesn't exist.
|
# Create a session if it doesn't exist.
|
||||||
if ! tmux has-session -t "$selected_name" 2> /dev/null; then
|
if ! tmux has-session -t "$selected_name" 2> /dev/null; then
|
||||||
tmux new-session -ds "$selected_name" -c "$selected" -n "editor" "${EDITOR} ."
|
tmux new-session -ds "$selected_name" -c "$selected" -n "editor"
|
||||||
|
tmux send-keys -t editor 'n' Enter
|
||||||
tmux new-window -d -n "terminal" -c "$selected"
|
tmux new-window -d -n "terminal" -c "$selected"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user