-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.shared
52 lines (39 loc) · 1.4 KB
/
.tmux.shared
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
# shared amongst all tmux
# index will start from 1
set -g base-index 1
#unbind C-b
#set -g prefix C-a # rebind the C-b to C-a
set -g default-path $PWD
# VI keybindings please
setw -g mode-keys vi
# VI for splitting
bind s split-window -v
bind v split-window -h
#bind s set default-path $PWD \; split-window -v\
#bind v set default-path $PWD \; 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
# 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
## setting up status bar
## mostly horked from http://www.linuxized.com/2010/05/switching-from-gnu-screen-to-tmux/
set-option -g status-utf8 on
# 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 40
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
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S #[fg=green]][#[default]'
#set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'