forked from erikzaadi/shelldone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
70 lines (57 loc) · 2.15 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
# set-option -g prefix M-w # Change to sane prefix
# bind-key M-w send-prefix
set -sg escape-time 0
bind-key \ kill-session
set -sg mouse off
# Support for 256 colors
#set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g xterm-keys on
set -g destroy-unattached off
# bind vi key-mapping
set -g status-keys vi
# vi-style controls for copy mode
setw -g mode-keys vi
# Window index base 1
set -g base-index 1
# Pane index (for tmuxinator)
set-window-option -g pane-base-index 1
# large history
set-option -g history-limit 100000
# highlight status bar on activity
setw -g monitor-activity on
set -g visual-activity off
# set -g visual-bell on
# automatically set window title
set -g automatic-rename off
set -g allow-rename off
set-option -g display-time 5000
# allow terminal scrolling
# set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'
set-option -g status-interval 30
set-option -g renumber-windows on #tmux 1.8
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
setw -g aggressive-resize on
bind '-' split-window -c "#{pane_current_path}"
bind '|' split-window -h -c "#{pane_current_path}"
bind 'C' new-window -c "#{pane_current_path}"
# bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
# bind -n WheelDownPane select-pane -t= \; send-keys -M
# clipboard support
bind p run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
bind y run "tmux save-buffer - | pbcopy"
# force a reload of the config file
bind R source-file ~/.tmux.conf\; display-message "tmux.conf reloaded!"
bind F3 send-keys 'tmux set -g mode-keys vi;tmux set -g status-keys vi' Enter
#toggle status bar
bind F set status
# some more from http://fahdshariff.blogspot.co.il/2011/10/managing-multiple-terminals-with-tmux.html
bind / command-prompt -p "man" "split-window -h 'man %%'"
bind S command-prompt -p "ssh" "new-window -n %1 'exec ssh %1'"
bind F1 split-window -h "man tmux"
#toggle broadcast to all panes
bind F2 set synchronize-panes
set -g focus-events on
#set -g utf8 on
#set -g status-utf8 on