-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
50 lines (41 loc) · 1.05 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
# Set prefix to Ctrl + a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Set base index
set -g base-index 1
setw -g pane-base-index 1
# Set mouse
set -g mouse on
# Set Session
set -g status-left-length 40
# Set window
unbind c
bind n new-window -c "#{pane_current_path}"
set -g renumber-windows on
# Set pane
unbind %
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
# Set copy mode
setw -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi r send-keys -X rectangle-toggle
# Other
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
set -g default-terminal "screen-256color"
set -g history-limit 10000
set -g default-command "/bin/zsh"
# ==== Note ====
# Alias:
# bind -> bind-key
# unbind -> unbind-key
# set -> set-option
# setw -> set-window-option
# source -> source-file
#
# 1. If "bind -n", we can trigger event wihout prefix key.
#
# for details, see http://man.openbsd.org/tmux