forked from ecliptik/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
79 lines (61 loc) · 2.04 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
#Set prefix key to Ctrl-a
unbind-key C-b
set -g prefix C-a
#Use zsh
set-option -g default-shell /bin/zsh
#Rsend the prefix to client inside window
bind-key C-a send-prefix
#Toggle last window like screen
bind-key C-a last-window
#Sane scrolling
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#Scrollback buffer n lines
set -g history-limit 500000
#Enable wm window titles
set -g set-titles on
#Set friendlier terminal type
set -g default-terminal "screen-256color"
#Use vim keybindings in copy mode
setw -g mode-keys vi
#Start window count at one
set -g base-index 1 # count from 1
#Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-selection
bind-key -t vi-copy V rectangle-toggle
bind-key -t vi-copy Escape cancel
bind-key p paste-buffer
#Switch Windows
bind-key n next-window
bind-key m previous-window
#Buffer
bind Space choose-buffer
#Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
#Switch panels with vi keybindings
bind k selectp -U # switch to panel Up
bind j selectp -D # switch to panel Down
bind h selectp -L # switch to panel Left
bind l selectp -R # switch to panel Right
#Setup status bar
set-option -g status-position bottom
set-option -g status-bg cyan
set-option -g status-fg default
set-option -g status-interval 5
set-option -g visual-activity on
set-window-option -g status-left ""
set-window-option -g window-status-current-fg default
set-window-option -g window-status-current-bg magenta
set-window-option -g monitor-activity on
set-window-option -g window-status-activity-attr none
set -g status-right '#U@#H #(tmux display-message -p "#{pane_current_path}" | sed "s#$HOME#~#g")'
set -g status-right-length 120
setw -g automatic-rename on
#Setup pane borders
set -g pane-border-fg default
set -g pane-active-border-fg cyan
set -g pane-active-border-bg default
#Enable logging plugin
run-shell ${HOME}/dotfiles/plugins/tmux-logging/logging.tmux
#Enable hostname plugin
run-shell ${HOME}/dotfiles/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux