-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
85 lines (63 loc) · 2.31 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
#set-option -g default-shell /bin/zsh
set -g default-terminal "screen-256color"
unbind C-b
set -g prefix C-a
bind-key C-a last-window
# Move window positions with Ctrl+Shift+Left and Right
bind-key -n C-S-Left swap-window -t -1
bind-key -n C-S-Right swap-window -t +1
# shared amongst all tmux
# VI keybindings please
setw -g mode-keys vi
# more VI-like copy/paste (http://jasonwryan.com/blog/2011/06/07/copy-and-paste-in-tmux/)
unbind [
bind Escape copy-mode
#unbind p
#bind p paste-buffer
# VI for splitting
bind s split-window -v
bind v split-window -h
bind - split-window -v
bind | split-window -h
# VI for switching between
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Make C-a a send C-a to the console
bind-key a send-prefix
# make it easy to grab a pane and put it into the current window
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'"
# remotecopy the most recent buffer
bind-key y save-buffer ~/.tmux-buffer \; run-shell "remotecopy foo || true" \; command-prompt -p "secret:" "run-shell \"cat ~/.tmux-buffer | remotecopy -s %%\""
# easily toggle synchronization (mnemonic: e is for echo)
bind e setw synchronize-panes on
bind E setw synchronize-panes off
# switch " over to selecting windows
unbind '"'
bind-key '"' choose-window
# use ' to switch between sessions
bind-key "'" choose-session
# number windows from 1
#set -g base-index 1
# don't wait after escape
set -s escape-time 0
## setting up status bar
## mostly horked from http://www.linuxized.com/2010/05/switching-from-gnu-screen-to-tmux/
# set-option -g status-justify centre
set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 20
setw -g window-status-bg black
setw -g window-status-current-fg green
#setw -g window-status-alert-attr default
#setw -g window-status-alert-fg yellow
# monitor activity
setw -g monitor-activity on
set -g visual-activity off
bind m setw monitor-activity off
bind M setw monitor-activity on
set -g status-left '#[fg=green][ #[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
set -g status-right '#[fg=green][#[fg=yellow]#(uptime | rev | cut -d":" -f1 | rev | sed s/,/./g | sed "s/. / /g")# #[fg=green] ][ #[fg=white]%Y-%m-%d %H:%M#[default] #[fg=green]]'
#set -g status-right-length 100