-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
72 lines (55 loc) · 2.11 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
set -g status off
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",*256col*:Tc"
# bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip"
# Some experiments with pane splitting layouts
bind H select-layout even-horizontal
bind V select-layout even-vertical
# unbind the ctrl-b modifier and switch to use a
# recommended to use this in combination with binding caps lock to ctrl
unbind C-b
set -g prefix C-a
# first window index
set -g base-index 1
set -g pane-base-index 1
# dont automatically rename windows
set-option -g allow-rename off
# pass through xterm keys
set-window-option -g xterm-keys on
# deal with escape press lag
set -s escape-time 0
# split panes
# choose whatever keys you want - Ive chosen the key at the top left of the number row
# regular = vertical split, with shift = horizontal split
bind Enter split-window -h -c "#{pane_current_path}"
bind Space split-window -v -c "#{pane_current_path}"
unbind x
bind w kill-pane
unbind &
bind q confirm-before -p "kill window #W? (y/n)" kill-window
unbind c
bind n new-window -c "#{pane_current_path}"
unbind '"'
unbind %
# reload config file
unbind r
bind r source-file ~/.tmux.conf
# use the mouse to switch panes
set -g mouse off
# Pane switching
bind Left select-pane -L
bind Right select-pane -R
bind Up select-pane -U
bind Down select-pane -D
bind Tab last-pane
# Plugin tweaks BEFORE loading tpm
#set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] C:#{cpu_percentage} | R:#{ram_percentage} #[fg=white,bg=brightblack] %d-%m-%y #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] %H:%M "
#set -g status-left "#[fg=black,bg=blue,bold] #S #[fg=blue,bg=black,nobold,noitalics,nounderscore]"
# List of plugins
#set -g @plugin 'tmux-plugins/tpm'
#set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-cpu'
#set -g @plugin 'tmux-plugins/tmux-resurrect'
#set -g @plugin 'tmux-plugins/tmux-continuum'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
#run -b '~/.tmux/plugins/tpm/tpm'