Skip to content

Instantly share code, notes, and snippets.

@Donluigimx
Last active November 12, 2021 00:43
Show Gist options
  • Select an option

  • Save Donluigimx/091c2e94e09315af4532e97883baefa5 to your computer and use it in GitHub Desktop.

Select an option

Save Donluigimx/091c2e94e09315af4532e97883baefa5 to your computer and use it in GitHub Desktop.
TMUX configuration file
# Replace C-b to C-a
set -g prefix C-a
# Move between panes a la vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resize panes a la vim
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Reload configuration
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Set the default terminal mode to 256color model
set -g default-terminal "screen-256color"
# Center clients
set -g status-justify centre
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# enable vi mode
setw -g mode-keys vi
# send ctrl-A to terminal
bind C-a send-prefix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment