-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
106 lines (76 loc) · 3.12 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
################################################################################
## Basic options ###############################################################
################################################################################
# set the default to be 256color
set -g default-terminal "screen-256color"
set -g default-shell "/bin/zsh"
bind r source-file ~/.tmux.conf # reload config
bind -n C-k clear-history # Clear history
#switch the prefix key to be more like screen
set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
# get terminal titles to work
set -g set-titles on
set -g set-titles-string "#I:#W"
# resize as soon as smaller screen moves away
setw -g aggressive-resize on
#set the default tiling method to "tiled" -- which acts like you're run-of-the-mill tiling window manager
#select-layout tiled
#also unbind the layout-changing command, we'll do this from the command mode should we ever need to
unbind-key Space
#start counting windows at 1
set -g base-index 1
#minimize set-time
set -s escape-time 0
#set a large history limit
set -g history-limit 131072
## Key binds ###################################################################
################################################################################
bind-key c new-window -c "#{pane_current_path}"
# window splits and navigation
bind-key v split-window -h -c "#{pane_current_path}"
bind-key s split-window -v -c "#{pane_current_path}"
bind-key h select-pane -L
bind-key l select-pane -R
bind-key j select-pane -D
bind-key k select-pane -U
bind-key C-h select-pane -L
bind-key C-j select-pane -D
bind-key C-k select-pane -U
bind-key C-l select-pane -R
bind-key b break-pane
bind-key r swap-pane -D
bind-key R swap-pane -U
bind-key b break-pane
bind-key r swap-pane -D
bind-key R swap-pane -U
bind-key p previous-window
bind-key n next-window
## Copy/paste ######################################################################
################################################################################
set -g default-command "reattach-to-user-namespace -l zsh"
setw -g mode-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namspace pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# window picker
bind-key Space choose-window
# status color
set -g status-bg colour166
# pomo
set-option -g status-right '#(cat ~/.pomo_stat)'
set -g mouse on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
#set -g @plugin 'tmux-plugins/tmux-continuum'
run-shell ~/clone/path/continuum.tmux
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
#set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/block/green'