-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
63 lines (55 loc) · 1.66 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
# ---------- Tmux bindings ---------- #
# set prefix to control-f
set -g prefix C-f
# unbind system defined prefix
unbind C-b
# helps in faster key repetition
set -sg escape-time 0
# start session number from 1 rather than 0
set -g base-index 1
# start pane number from 1 similar to windows
set -g pane-base-index 1
# Make the current window the first window
bind T swap-window -t 1
# source .tmux.conf file
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
# dont mess up with other ctrl-a options by pressing ctrl-a twice
bind C-a send-prefix
# PANES
# vertical split
bind | split-window -h
# horizontal split
bind - split-window -v
# pane movement similar to vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes
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
# WINDOWS
# to cycle through windows
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# automatically renumber windows
set-option -g renumber-windows on
# enable mouse
set -g mouse on
# Toggle mouse on
bind m set -g mouse on \; display 'Mouse: ON'
# Toggle mouse off
bind M set -g mouse off \; display 'Mouse: OFF'
# Note: hold shift key to select the text using mouse
# --------- List of plugins ---------- #
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'arcticicestudio/nord-tmux'
# --------- Tmux display ---------- #
set -g status-left-length 100
set -g status-right-length 100
set -g default-terminal "screen-256color"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'