now uses sesh instead

This commit is contained in:
2026-01-24 15:17:21 +01:00
parent e6d062e75d
commit 0760078521
4 changed files with 2 additions and 26 deletions
+2
View File
@@ -1,6 +1,7 @@
# Rebind prefix key to Ctrl+a for easier access
unbind C-b
set-option -g prefix C-a
set-option -g remain-on-exit off
bind-key C-a send-prefix
set-option -g focus-events on
@@ -20,6 +21,7 @@ bind c-l select-pane -R
bind c-g popup -E -w 80% -h 80% -d "#{pane_current_path}" -b rounded lazygit
bind c-t popup -E -w 80% -h 80% -b rounded -d "#{pane_current_path}"
bind c-s popup -E -w 80% -h 80% -b rounded "sesh"
bind c-x confirm-before -p "Kill current session #S? (y/n)" kill-session
bind j command-prompt -p "Join window:" "join-pane -h -s %1"
bind b break-pane
-4
View File
@@ -1,4 +0,0 @@
SESSION_FILE=$(ls "$HOME/tmux" | fzf)
if [ -n "$SESSION_FILE" ]; then
sh "$HOME/tmux/$SESSION_FILE"
fi
-2
View File
@@ -1,2 +0,0 @@
*.sh
!edit-sessions.sh
-20
View File
@@ -1,20 +0,0 @@
SESSION="edit sessions"
if tmux has-session -t "$SESSION" 2>/dev/null; then
if [ -n "$TMUX" ]; then
tmux switch-client -t "$SESSION"
else
tmux attach -t "$SESSION"
fi
exit 0
fi
tmux new-session -d -s "$SESSION" -c ~/tmux/ -n "nvim"
tmux send-keys -t "$SESSION":"nvim" 'nvim .' C-m
tmux select-window -t "$SESSION":"nvim"
if [ -n "$TMUX" ]; then
tmux switch-client -t "$SESSION"
else
tmux attach -t "$SESSION"
fi