-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
70 lines (55 loc) · 1.75 KB
/
.tmux.conf
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -g mouse on
# setw -g mode-mouse on
# set -g mouse-select-pane on
# set -g mouse-resize-pane on
set -s escape-time 0
# set -g base-index 1
# set-window-option -g pane-base-index 1
set -s escape-time 0
# hne traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# keybindings to make resizing easier
bind -r C-h resize-pane -L
bind -r C-j resize-pane -D
bind -r C-k resize-pane -U
bind -r C-l resize-pane -R
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Use vim keybindings in copy mode
setw -g mode-keys vi
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# Setup 'v' to begin selection as in Vim
#bind-key -t vi-copy v begin-selection
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Setup 'v' to begin selection as in Vim
# bind-key -t vi-copy C-v begin-selection
# Update default binding of `Enter` to also use copy-pipe
#unbind -t vi-copy Enter
#bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
set-option -g history-limit 18000
# set -g @resurrect-save "S"
# set -g @resurrect-restore "R"
# List of plugins
# # Supports `github_username/repo` or full git URLs
# set -g @tpm_plugins " \
# tmux-plugins/tpm \
# tmux-plugins/tmux-sensible \
# tmux-plugins/tmux-resurrect \
"
# Other examples:
# github_username/plugin_name \
# git@github.com/user/plugin \
# git@bitbucket.com/user/plugin \
# run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
# initializes TMUX plugin manager
# run-shell ~/.tmux/plugins/tpm/tpmz