-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
executable file
·36 lines (31 loc) · 1.18 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
set-option -g prefix C-x
unbind-key C-b
bind-key b last-window
set-option -g status on
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#S'
#set -g status-right '#[fg=yellow]#(uptime | egrep -o "[0-9]+ users?, +load.*"|perl -pe "s| averages?||"), %H:%M'
set -g status-right-length 0
# Highlight active window
set-window-option -g window-status-current-bg red
# Automatically set window title
setw -g automatic-rename
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
setw -g monitor-activity off
# set some bindings for moving around terminals (vim-like)
bind - split-window -v
bind | split-window -h
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# switch to a session that start with the given name
bind S command-prompt -p session: "run-shell 'tmux-switch-session \"%%\"'"
bind-key B attach-session -t ber #Attach to session ber
bind-key H attach-session -t han #Attach to session ber
set-window-option -g mode-keys vi
#Save history to a file
set-option -g history-limit 30000
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'