tmux improvements + starship supports docker compose

This commit is contained in:
2026-01-30 13:32:20 +01:00
parent e9102fa097
commit 75493e31cc
2 changed files with 16 additions and 4 deletions

View File

@@ -15,9 +15,13 @@ setw -q -g utf8 on
bind - split-window -v -c "#{pane_current_path}"
bind _ split-window -h -c "#{pane_current_path}"
# shift+arrow window switching
bind -n S-Left previous-window
bind -n S-Right next-window
# shift+arrow window switching (no wrap)
bind -n S-Left if-shell "[ #{window_index} -ne $(tmux list-windows -F '##{window_index}' | head -1) ]" "previous-window"
bind -n S-Right if-shell "[ #{window_index} -ne $(tmux list-windows -F '##{window_index}' | tail -1) ]" "next-window"
# swap windows left/right with Ctrl+Shift+Arrow
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# sensible defaults
set -s escape-time 10