Skip to content

Instantly share code, notes, and snippets.

@robobe
Last active May 6, 2023 05:26
Show Gist options
  • Save robobe/5d6a18054a45ffc13bf2003a9db84f17 to your computer and use it in GitHub Desktop.
Save robobe/5d6a18054a45ffc13bf2003a9db84f17 to your computer and use it in GitHub Desktop.
tmux conf file #settings
# unbind
unbind C-b
unbind '"'
unbind %
# base1 numbering
set -g base-index 1
setw -g pane-base-index 1
#bind ctrl-a as a prefix
set-option -g prefix C-a
bind-key C-a send-prefix
# kill session
bind C-c kill-session
# mouse
set -g mouse on
# do like terminator
bind -n C-E split-window -h
bind -n C-S-Left resize-pane -L 3
bind -n C-S-Right resize-pane -R 3
bind -n C-S-Up resize-pane -U 3
bind -n C-S-Down resize-pane -D 3
bind -n C-O split-window -v
# switch panes using Alt-arrow without prefix (not working)
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind n next-window
bind p previous-window
bind c new-window -c "#{pane_current_path}"
bind r source-file ~/.tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment