-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
executable file
·65 lines (49 loc) · 1.61 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
# sort alphabetically
bind s choose-tree -swZ -O name
# Add truecolor support
# set -sa terminal-overrides ",screen-256color:RGB"
# Default terminal is 256 colors
# set -g default-terminal "screen-256color"
set -ag terminal-overrides ",$TERM:RGB"
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# disable rbenv variable in new panes
set-environment -gu RBENV_VERSION
# Setting the prefix from C-b to C-a
set -g prefix C-a
unbind C-b
# Ensure that we can send Ctrl-A to other apps
# bind C-a send-prefix
# Set the base index for windows and panes to 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Splitting panes
bind h split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# New panes have the same directory
bind c new-window -c "#{pane_current_path}"
# Pane resizing
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10
# Mouse support - set to on if you want to use the mouse
set -g mouse on
# Renumber windows when a window is closed
set-option -g renumber-windows on
# Enable vi keys.
setw -g mode-keys vi
# bind r source-file ~/.tmux.conf \;# display-message "Config reloaded..."
# set -sg escape-time 0
# TMUX plugin manager
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
christoomey/vim-tmux-navigator \
tmux-plugins/tmux-yank \
niksingh710/minimal-tmux-status
"
# tmux-plugins/tmux-continuum \
# tmux-plugins/tmux-resurrect \
# set -g @continuum-restore 'on'
run-shell ~/.tmux/plugins/tpm/tpm