-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
39 lines (34 loc) · 1.66 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
# In order to not lose vim colorscheme
# (eg. https://github.com/neovim/neovim/issues/7764)
set -g default-terminal 'xterm-256color'
set -g terminal-overrides ',xterm-256color:Tc'
# Recommended by :checkhealth but italic comments break
# set-option -g default-terminal 'screen-256color'
# focus-events might cause vim slowness over time
set-option -g focus-events on # Handle autoread for vim
set -sg escape-time 0 # No delay for escape key press
set -g mouse on # Enable mouse in windows/panes
setw -g mode-keys vi # Enable vi mode
set -g history-limit 5000 # Default has been 2000
# Open new windows at current path
bind c new-window -c '#{pane_current_path}'
# Navigate split panes like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Source tmux config
bind r source-file ~/.tmux.conf
# Custom status bar using one dark color scheme
set -g status-position top # Position at the top of the window
set -g message-style 'bg=#2c323d fg=#abb2bf' # Command-line/messages
set -g message-command-style 'bg=#2c323d fg=#98c379' # Command-line/messages
set -g status-style 'bg=#2c323d fg=#abb2bf' # Overall base colors
set -g status-left '' # Hide default session name
set -g status-right '' # Hide default username and time/date
set -g pane-border-style fg='#3e4452' # Inactive pane border
set -g pane-active-border-style fg='#98c379' # Active pane border
set -g window-status-style 'bg=#2c323d fg=#abb2bf' # Inactive window tabs
set -g window-status-current-style 'bg=#3e4452 fg=#abb2bf bold' # Active window tabs
set -g window-status-format ' #I:#W ' # Inactive window index/name
set -g window-status-current-format ' #I:#W ' # Active window index/name