12345678910111213141516171819202122232425262728293031 |
- # Synchronize windows shortcut
- unbind a
- bind a set-window-option synchronize-panes
- # Use | and - to split a window vertically and horizontally instead of " and % respoectively
- unbind '"'
- unbind %
- bind | split-window -h -c "#{pane_current_path}"
- bind - split-window -v -c "#{pane_current_path}"
- # Automatically set window title
- set-window-option -g automatic-rename on
- set-option -g set-titles on
- # Use r to quickly reload tmux settings
- unbind r
- bind r \
- source-file ~/.tmux.conf \;\
- display 'Reloaded tmux config'
- # Set the history limit so we get lots of scrollback.
- setw -g history-limit 50000000
- # switch panes using Alt-arrow without prefix
- 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
- # Enable mouse mode
- set -g mouse on
|