-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
64 lines (52 loc) · 2.07 KB
/
Copy pathtmux.conf
File metadata and controls
64 lines (52 loc) · 2.07 KB
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
set-option -g mouse on
set -g default-shell $SHELL
set -g renumber-windows on
set-window-option -g automatic-rename on
#set-window-option -g mode-style bright
set-option -g default-terminal "screen-256color"
## REMAP PREFIX TO CONTROL + A
set -g prefix C-a
unbind C-b
bind C-a send-prefix
## FAST-RELOAD CONFIG FILE
bind r source-file ~/.tmux.conf
setw -g mode-keys vi
setw -g xterm-keys on
## OPEN SPLITS IN THE SAME DIRECTORY
bind-key % split-window -h -c "#{pane_current_path}"
bind-key '"' split-window -v -c "#{pane_current_path}"
## NO-REPEAT WHEN SWITCHING PANES
#bind-key Up select-pane -U
#bind-key Down select-pane -D
#bind-key Left select-pane -L
#bind-key Right select-pane -R
## navigate panes using vim keys
bind-key h select-pane -L\; refresh-client -S
bind-key j select-pane -D\; refresh-client -S
bind-key k select-pane -U\; refresh-client -S
bind-key l select-pane -R\; refresh-client -S
## KEYBINDINGS
bind-key -T copy-mode-vi v send-keys -X begin-selection
#bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
## go to last window
bind-key m last-window
set-option -g set-titles on
set-option -g focus-events on
set-option -g status-bg black
set-option -g status-fg white
set-option -g window-status-current-style bg=white,fg=black,bold,bright
set-option -g status-style bright
#set-option -g window-status-current-bg white
#set-option -g window-status-current-fg black
#set-option -g window-status-current-attr bold,bright
set-option -g status-interval 60
set-option -g status-left-length 30
set-option -g status-right-length 60
set-option -g status-left '#[fg=green,bold](#S) #(whoami) #[default]'
set-option -g status-right '#[fg=yellow] #{pane_current_path} #[default]'
#set-option -g status-right '#[fg=yellow] #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) #[default]'
set-option -sg escape-time 10
#setw -g monitor-activity on
#set -g visual-activity on
run-shell ~/.tmux/tmux-urlview/urlview.tmux