mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 03:30:37 +00:00
fix(tmux.conf): change base index to 1 for consistency with other tools
feat(tmux.conf): add support for attach-session command to allow attaching to a session from any directory refactor(tmux.conf): reorganize bindings and commands for better readability
This commit is contained in:
@@ -28,6 +28,9 @@ unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||
unbind %
|
||||
bind | split-window -h -c '#{pane_current_path}'
|
||||
|
||||
# Set base index to 1
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# Set kill pane to Shift + Option + X
|
||||
bind -n M-X kill-pane
|
||||
@@ -36,6 +39,9 @@ bind -n M-X kill-pane
|
||||
unbind '"'
|
||||
bind - split-window -v -c '#{pane_current_path}'
|
||||
|
||||
unbind 'C'
|
||||
bind C attach-session -c "#{pane_current_path}"
|
||||
|
||||
# Setting up window movement with leader key + Left/Right arrow
|
||||
bind Left swap-window -t -1\; select-window -t -1
|
||||
bind Right swap-window -t +1\; select-window -t +1
|
||||
|
||||
Reference in New Issue
Block a user