-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
65 lines (52 loc) · 1.58 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
# ~/.tmux.conf
# Set a Ctrl-b shortcut for reloading your tmux config
bind r source-file ~/.tmux.conf
# Set XTerm key bindings
setw -g xterm-keys on
# Use vim bindings
setw -g mode-keys vi
# Rename your terminals
set -g set-titles on
set -g set-titles-string '#(whoami)::#h::#(curl ipecho.net/plain;echo)'
# Status bar customization
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-left-length 90
set -g status-right-length 60
set -g status-left "#[fg=green]#(whoami)#[fg=white]:: #[fg=blue]#(hostname -s)#[fg=white]::#[fg=yellow]#(curl ipecho.net/plain;echo)"
set -g status-justify left
set -g status-right '#[fg=Cyan]#S #[fg=white]%a %d %b %R'
# terminal color
set -g default-terminal "screen-256color"
set -g terminal-overrides "xterm-256color:Tc"
# remove delay in using esc key
set -s escape-time 0
# Remap window navigation to vim
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R
# open new window with current directory
bind c neww -c '#{pane_current_path}'
# using plugin manager
# List of plugins
# the plugin manager itself
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# resurrect settings
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
# theme pack for tmux
set -g @plugin 'jimeh/tmux-themepack'
# choose theme
set -g @themepack 'double/cyan'
# Initialize TMUX plugin manager (keep this line at the very bottom of
# tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'