Skip to content

Commit

Permalink
Update tmux.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
elliott-liu committed Feb 6, 2024
1 parent 4b763eb commit 7c7cd53
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions dotfiles/config/tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# General settings
set -g detach-on-destroy off # Disable automatic session detachment on window destruction.
set -g allow-passthrough on # Allow unhandled input, like mouse events, to pass to applications.
set -g mouse on # Enable mouse support in tmux.
set -g base-index 1 # Start window indices at 1.
set -g pane-base-index 1 # Start pane indices at 1.
set -g renumber-windows on # Automatically renumber windows as they are closed.
set -g status-position top # Position the status line at the top of the window.
set -g detach-on-destroy off # Disable automatic session detachment on window destruction.
set -g allow-passthrough on # Allow unhandled input, like mouse events, to pass to applications.
set -g mouse on # Enable mouse support in tmux.
set -g base-index 1 # Start window indices at 1.
set -g pane-base-index 1 # Start pane indices at 1.
set -g renumber-windows on # Automatically renumber windows as they are closed.
set -g status-position top # Position the status line at the top of the window.

# Key bindings - Prefix
unbind C-b # Unbind the default prefix key.
set -g prefix C-Space # Change prefix from C-b to Ctrl-Space.
unbind C-b # Unbind the default prefix key.
set -g prefix C-Space # Change prefix from C-b to Ctrl-Space.

# Key bindings - Vim-style pane selection
bind h select-pane -L
Expand All @@ -23,9 +23,9 @@ bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# Key bindings - Split window
bind '"' split-window -v -c "#{pane_current_path}" # Split window vertically, maintaining current path.
bind '%' split-window -h -c "#{pane_current_path}" # Split window horizontally, maintaining current path.
# Key bindings - Split window (maintaining current path)
bind '"' split-window -v -c "#{pane_current_path}" # Split window vertically
bind '%' split-window -h -c "#{pane_current_path}" # Split window horizontally

# Key bindings - Shift-arrow to switch windows
bind -n S-Left previous-window
Expand Down

0 comments on commit 7c7cd53

Please sign in to comment.