-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
87 lines (59 loc) · 1.77 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
80
81
82
###################
# References #
###################
# http://www.unwiredcouch.com/2013/11/15/my-tmux-setup.html
# https://mutelight.org/practical-tmux
# http://robots.thoughtbot.com/love-hate-tmux
###################
# Behavior #
###################
# set prefix to Ctrl-a
#unbind C-b
#set -g prefix C-a
# send a Ctrl-a with Ctrl-a a
#bind-key a send-prefix
# start window numbering at 1 (easier switching)
#set -g base-index 1
# force reload of config
unbind r
bind r source-file ~/.tmux.conf
# toggle sending input to all panes on/off
bind C-s set-window-option synchronize-panes
# scrollback buffer n lines
set -g history-limit 5000
# faster command sequences
set -s escape-time 0
# automatically rename windows to running command
setw -g automatic-rename on
###################
# Appearance #
###################
# colors
set -g default-terminal "screen-256color"
###################
# Status Bar #
###################
# listen to alerts from all windows
set -g bell-action any
#######################
# System copy & paste #
#######################
# OLD WAY
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/8
# determine if os x copy/paste hack exists and use it when creating new tmux windows.
set-option -g default-command "which reattach-to-user-namespace >/dev/null && reattach-to-user-namespace -l bash || bash"
# NEW WAY
# http://robots.thoughtbot.com/tmux-copy-paste-on-os-x-a-better-future
#######################
# Vim-like experience #
#######################
# map Vi movement keys as pane movement keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes using PREFIX H, J, K, L
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5