now uses sesh instead
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# Rebind prefix key to Ctrl+a for easier access
|
# Rebind prefix key to Ctrl+a for easier access
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set-option -g prefix C-a
|
set-option -g prefix C-a
|
||||||
|
set-option -g remain-on-exit off
|
||||||
bind-key C-a send-prefix
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
set-option -g focus-events on
|
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-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-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-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 j command-prompt -p "Join window:" "join-pane -h -s %1"
|
||||||
bind b break-pane
|
bind b break-pane
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
SESSION_FILE=$(ls "$HOME/tmux" | fzf)
|
|
||||||
if [ -n "$SESSION_FILE" ]; then
|
|
||||||
sh "$HOME/tmux/$SESSION_FILE"
|
|
||||||
fi
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
*.sh
|
|
||||||
!edit-sessions.sh
|
|
||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user