blob: 8ff225d50211616fb08b674fe12d6a7d6447c0ce (
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
|
set -g status-bg green
set -g status-fg black
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg green
# Pretty nifty little option to mirror input for all panes
bind M-s setw synchronize-panes
# set -g mode-mouse on
setw -g mode-keys vi
setw -g aggressive-resize on
set -g default-terminal "screen-256color"
# Don't let command rename our windows
set-option -g allow-rename off
# Press v to "visually" and y to "yank" the text
# Press `c-b ]` to paste
# If you ever want to look up a keybind use `c-b ?`
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Fix for certian applications such as Nvim
set -sg escape-time 0
# Select panes with vim like bindings
bind-key M-k select-pane -U
bind-key M-j select-pane -D
bind-key M-h select-pane -L
bind-key M-l select-pane -R
# Reload configuration
bind-key r source ~/.tmux.conf
# Respawn the pane ( Useful with certain
bind-key M-r respawn-pane
# Change the status line a little bit, most are close to defaults
set -g status-left-length 16
set -g status-left "[#S] "
# Old status line, doesn't quite work right all the time
# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|up:#(uptime | awk '{print $1}' | awk -F: '{print $1}')h "
# Who knew I'd be embedding such a horrible abomination into a tmux configuration file?
set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime -p | awk 'BEGIN {OFS=\",\";} {print $1, $2, $3}' | sed -re's/^up,([0-9]+),([hmrsdwy]).*$/up:\\1\\2/g' ) "
# If you're on a BSD system copy this line into your ~/.tmux.conf.local
# set -g status-right "#[fg=green,bg=black] #(whoami)@#h|#( uptime | sed -re's/^.*up[ ]+//g' -e's/^([^,]*),.*/\\1/g' -e's/^([^ ]+)[ ]*(.).*/\\1\\2/g' )"
set -g status-right-length 40
set -g window-status-format "#I:#W#F"
# If you still want to select text out of the terminal as you normally would
# You should hold the shift key ( Linux ) I'm told it's "Option on Mac OS X"
set -g mouse on
# Old mouse method
# set-option -g mode-mouse on
# set-option -g mouse-resize-pane on
# set-option -g mouse-select-pane on
# set-option -g mouse-select-window on
# If you want any local configuration
source ~/.tmux.conf.local
|