-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
83 lines (64 loc) · 3.12 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
83
# =================================================================================================
#
# B888889b. 888b d888
# 889 888 8888b d8888
# .d88889 888 888 8888b. 888Y8b.d8P888
# 889 B888888P" 888b 888 Y888P 888
# 'd8889D. 888 .d888888 888 Y8P 888
# 889 888 88 888 888 ' 888
# o 888889D' 888 'd888888 888 888
#
# =================================================================================================
# -------------------------------------------------------------------------------------------------
# Enable Powerline in TMUX and bind shortcut for refreshing tmux configuration
# -------------------------------------------------------------------------------------------------
set -g default-shell /bin/zsh # Set default shell as Zsh
source "/usr/share/tmux/powerline.conf"
bind r source-file ~/.tmux.conf \; display-message "**Config Reloaded Successfully**".
# -------------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------------------
# TMUX Settings
# -------------------------------------------------------------------------------------------------
set -g base-index 1
setw -g pane-base-index 1
set -sg escape-time 0 # No delay for escape key press
set -g status-keys vi
set -g history-limit 5000
set -g default-terminal "tmux-256color"
setw -g mode-keys vi
setw -g monitor-activity on
# Enable mouse control
set -g mouse on
# -------------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------------------
# Binds
# -------------------------------------------------------------------------------------------------
# UnBind Default Prefix
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Splitting panes
bind } split-window -h
bind { split-window -v
bind N new-window
unbind '"'
unbind %
# Switching between panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind p paste-buffer
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
bind-key -T copy-mode-vi 'r' send -X rectangle-toggle
# -------------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------------------
# TMUX Plugin Manager
# -------------------------------------------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
run '~/.tmux/plugins/tpm/tpm' # Initialize TMUX plugin manager
# -------------------------------------------------------------------------------------------------