-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
59 lines (46 loc) · 1.53 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
# Improve colors
set -g default-terminal 'screen-256color'
# Set scrollback buffer to 10000
set -g history-limit 10000
# remap prefix from 'C-b' to 'C-a'
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
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
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Enable mouse mode
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# List of Plugins
set -g @plugin 'tmux-plugins/tmux-yank'
# Reload tmux config
bind r source-file ~/.tmux.conf
#open window with currrent path
bind c new-window -c '#{pane_current_path}'
# THEME
set -g window-status-separator ''
set -g window-status-current-style bg=yellow,fg=black
set -g status-bg green
set -g status-fg colour240
set -g window-status-format ' #I:#W#F '
set -g status-interval 1
set -g status-left-length 30
set -g status-left '#[bg=cyan]#[fg=black](#S) #(whoami)@#(hostname) '
set -g status-right '#[bg=magenta]#[fg=black] #(cut -d " " -f 1-3 /proc/loadavg) #[default] #[fg=black]%H:%M:%S %D #[default]'
# Get TPM if missing
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'"
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'