blob: 1fea36e0547c80fd967f7cdbbad3b69716dc6b45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
set-option -g default-terminal "xterm-256color"
set-option -g allow-rename off # Don't allow pane automatic renaming
set-option -g mouse on # mouse behavior
set-option -g base-index 1 # start indexing from 1 not 0
set-option -g pane-base-index 1 # start indexing from 1 not 0
set-option -g history-limit 10000 # Scroll History limit
set-option -g display-time 4000 # messages are displayed for 4 seconds
set-option -g focus-events on # focus events enabled for terminals that support them
set-option -g status-keys emacs # emacs binding status commands: https://unix.stackexchange.com/questions/383420/
set-option -s escape-time 50 # lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set-window-option -g alternate-screen on # allow running alternate screen (term feature) on tmux
set-window-option -g mode-keys vi # Vi mode and copy paste
bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
bind-key -n C-k clear-history
# Resizing panes
bind-key -r h resize-pane -L 5
bind-key -r j resize-pane -D 5
bind-key -r k resize-pane -U 5
bind-key -r l resize-pane -R 5
# Switch pane with Ctrl+Arrow (instead of prefix Ctrl+Arrow)
# This is conflicting with MacOS keyboard shortcuts (System Preferences > Keyboard > Shortcuts > Mission Control)
# move space left/move space right are disabled as well as Mission Control and Application windows shortcuts
# in System Preferences > Mission Control > Keyboard and Mouse shortcuts
bind-key -T root C-Up select-pane -U
bind-key -T root C-Down select-pane -D
bind-key -T root C-Left select-pane -L
bind-key -T root C-right select-pane -R
# Load OSX specific configurations to add (fix copy)
if-shell 'test "$(uname)" = "Darwin"' 'source ~/.tmux-osx.conf'
|