-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.tmux.conf
130 lines (106 loc) · 3.68 KB
/
dot.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Set command prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# General settings
set -g bell-action none
set -g history-limit 10000
set -g status-keys vi
set -g base-index 1
set -s escape-time 0
setw -g aggressive-resize on
set -g default-terminal "xterm-256color"
set-option -g renumber-windows on
# Default shell zsh
set-option -g default-shell /bin/zsh
# Keep current path in new windows/panes
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Divider coloring
set -g pane-border-bg black
set -g pane-border-fg blue
set-option -g pane-active-border-style fg=blue
set-option -g pane-active-border-style bg=grey
# Scrolling
set -g mouse on
setw -g mouse on
## copy/paste ##
# Use vim keybindings in copy mode
setw -g mode-keys vi
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection
# Unbindings
unbind j
unbind d
unbind n
set -g status-bg black
set -g status-fg white
set-option -g status on
#set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/tools/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/tools/tmux-powerline/powerline.sh right)"
# Highlight current window
set-window-option -g window-status-current-style bg=blue
# Set window notifications
setw -g monitor-activity on
setw -g mode-keys vi
# Bind for nested sessions
bind-key a send-prefix
#bind ^t last-window
bind-key C-a last-window
# New detach binding to allow usage of screen
bind ^D detach
# use the vim motion keys to move between panes
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# default statusbar colors
set -g status-fg white
set -g status-bg black
#set -g status-style bright
# default window title colors
set-window-option -g window-status-style fg=white
set-window-option -g window-status-style bg=default
set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=white
set-window-option -g window-status-current-style bg=default
set-window-option -g window-status-current-style bright
# Highlight active window
set-window-option -g window-status-current-style bg=blue
# List of plugins
# Supports `github_username/repo` or full git repo URLs
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-open \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-fpp \
tmux-plugins/tmux-battery \
tmux-plugins/tmux-cpu \
yardnsm/tmux-1password \
tmux-plugins/tmux-sidebar \
'
## Plugin settings
set -g @resurrect-strategy-vim 'session'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '60'
set -g @1password-subdomain 'splice'
#
#
## Initializes TMUX plugin manager.
## Keep this line at the very bottom of tmux.conf.
run-shell '~/.tmux/plugins/tpm/tpm'
unbind n