-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
52 lines (36 loc) · 1.48 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
# set terminal compatibility to xterm-256color with support for true color
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g mouse on
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded!"
set-window-option -g mode-keys vi
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'xamut/tmux-weather'
set -g @plugin 'alexwforsythe/tmux-which-key'
set -g status-bg "#1a1b26"
set -g status-fg "#c1c9f1"
set-option -g @tmux-weather-location "Sydney"
set-option -g status-right " %H:%M | %d %b | #{weather} "
# Install Tmux Plugin Manager (TPM) if not already installed
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'mkdir -p ~/.tmux/plugins && git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins && echo \"Done\" && sleep 5'"
# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'
# replace tmux-pain-control keymap, need to be after TPM run to replace
unbind "\\"
unbind "|"
bind-key "\\" split-window -h -c "#{pane_current_path}"
bind-key "|" split-window -fh -c "#{pane_current_path}"