-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
44 lines (33 loc) · 991 Bytes
/
.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
# Change global prefix
set -g prefix C-a
unbind C-b
# Bind a key to reload the configuration
bind r source-file ~/.tmux.conf \; display "Sourced ~/.tmux.conf"
# Bind a key to pass through Ctrl+a
bind C-b send-prefix
# Rebind keys for splitting panes
bind | split-window -h
bind - split-window -v
# Rebind keys for moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Bind keys to resize windows
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Bind key for SSH
bind-key S command-prompt -p ssh: "new-window -n %1 'ssh %1'"
# Bind key for renaming window
bind-key A command-prompt -I "#W" -p "rename window:" "rename-window %1"
# Turn on 256 Colors
set -g default-terminal "screen-256color"
# Set status bar
set -g status-bg magenta
set -g status-fg white
set-w -g window-status-current-bg colour236
# Set vi keys
setw -g mode-keys vi
set -g history-limit 10000