aboutsummaryrefslogtreecommitdiff
path: root/files/.tmux.conf
blob: 7a96f547acbfb697d72633d711d4c04fda0b6498 (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
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
71
72
73
74
# bind prefix to ^a
unbind C-b
set -g prefix `
bind-key ` send-prefix

## make window/pane index start with 1
set -g base-index 1
setw -g pane-base-index 1

set -g set-titles on
set -g set-titles-string "#S / #W"


# disable auto rename of windows
set-option -g allow-rename off

# enable mouse support
setw -g mouse on

## set vi mode for copy mode
#setw -g mode-keys vi
#unbind [
#bind Escape copy-mode
#unbind p
#bind p paste-buffer
#bind -t vi-copy 'v' begin-selection
#bind -t vi-copy 't' copy-selection

##
## Key bindings
##

bind \ split-window -h -c '#{pane_current_path}'

# toggle last 2 windows
bind C-a last-window

## pane movement
#bind h select-pane -L
#bind j select-pane -D
#bind k select-pane -U
#bind l select-pane -R

## window movement
#bind -r C-h select-window -t :-
#bind -r C-l select-window -t :+

## resize pane
#bind -r H resize-pane -L 10
#bind -r J resize-pane -D 10
#bind -r K resize-pane -U 10
#bind -r L resize-pane -R 10

# stay in copy mode on drag end
#unbind-key -t vi-copy MouseDragEnd1Pane
#bind-key -t vi-copy MouseUp1Pane cancel

# Status bar
set -g status-right "$USER@#h %H:%M"

set -g @colors-solarized 'light'

# To Install Plugin: <Prefix> + I
# To Uninstall Plugin: <Prefix> + <Alt> + U

# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'seebi/tmux-colors-solarized'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-pain-control'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'