-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
52 lines (40 loc) · 1.46 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
# remap prefix to Control + a
set -g prefix C-a
# release control + b
unbind C-b
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
# naming windows starting at 1
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# correct colorscheme for vim
# set -g default-terminal "xterm-256color"
# set -g default-terminal "screen-256color"
# https://unix.stackexchange.com/questions/57700/reset-background-to-transparent-with-tmux/321576#321576
set -g default-terminal "screen-256color-bce"
# Redefine splitting shortcuts
bind _ split-window -h \; display "Splitting Vertical"
bind - split-window -v \; display "Splitting Horizontal"
# reload conf:
# C-a + :source-file ~/.tmux.conf
# Reorder windows
# swap-window -s 3 -t 1
# Reorder panes
# https://superuser.com/questions/879190/how-does-one-swap-two-panes-in-tmux
# C-a { <- current pane to the right
# C-a } <- current pane to the left
# List of plugins
# Package manager
set -g @plugin 'tmux-plugins/tpm'
# Nord theme
set -g @plugin "arcticicestudio/nord-tmux"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Installing plugins
# Add new plugin to ~/.tmux.conf with set -g @plugin '...'
# Press prefix + I (capital i, as in Install) to fetch the plugin.
# Uninstalling plugins
# Remove (or comment out) plugin from the list.
# Press prefix + alt + u (lowercase u as in uninstall) to remove the plugin.