forked from gorillamoe/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
126 lines (93 loc) · 3.25 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
set -g default-shell /bin/bash
set -g history-limit 10000
# use vim key bindings
setw -g mode-keys vi
# Move tmux's status bar to the top
set-option -g status-position top
# no delay when pressing escape
set -s escape-time 0
# start window index at 1
set -g base-index 1
# start pane index at 1
setw -g pane-base-index 1
# highlight window when it has new activity
setw -g monitor-activity on
set -g visual-activity on
# re-number windows when one is closed
set -g renumber-windows on
###########################
# Key Bindings #
###########################
# create 'v' alias for selecting text
bind-key -T copy-mode-vi 'v' send -X begin-selection
unbind -T copy-mode-vi 'Enter'
# copy to system clipboard
# start selection by <C>b[<SPACE>
# press y or enter to copy to system keyboard
bind-key -T copy-mode-vi 'Enter' send -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# paste
unbind C-p
bind C-p paste-buffer
# window splitting
unbind %
bind | split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
# Bind synchronize panes toggle
bind-key S set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Vim-like bindings FTW!
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# move windows to left and right
bind C-h swap-window -t -1
bind C-l swap-window -t +1
# ----------------------
# Status Bar
# -----------------------
set-option -g status on # turn the status bar on
set -g status-interval 35 # set update frequencey (default 15 seconds)
set -g status-justify centre # center window list for clarity
# ----------------------
# set some pretty colors
# ----------------------
# set pane colors - highlight the active pane
set -g pane-border-style fg="#333333"
set -g pane-active-border-style 'fg=#888888 bg=#2F343F'
# colorize messages in the command line
set-option -g message-style 'bg=#F4F45C fg=#ff0000'
# center the status bar
set -g status-justify left
# show hostname, date, time, and battery in right status bar
set-option -g status-right '%Y-%m-%d %H:%M'
###########################
# Colors
###########################
# color status bar
set -g status-bg '#2F343F'
set -g status-fg '#888888'
# current window
set -gw window-status-current-format "#[bg=magenta#,fg=#2F343F] #I #W "
# highlight activity
set-option -gw window-status-activity-style 'bg=#aaaaaa fg=#990000 bold'
# set terminal to true colors
set -g default-terminal "screen-256color"
set -as terminal-features ",xterm-256color:RGB"
# tmux plugin manager
# https://github.com/tmux-plugins/tpm/
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-urlview'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'