Repository navigation
Expand file tree
/
Copy pathtmux.conf
More file actions
60 lines (46 loc) · 1.68 KB
/
Copy pathtmux.conf
File metadata and controls
60 lines (46 loc) · 1.68 KB
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
# Because your prompt uses 256 colors
set -g default-terminal "screen-256color"
# So you can have two clients at once
set-window-option -g aggressive-resize on
# MORE HISTORYYYYYY
set -g history-limit 20000
# Apparently vim also uses escape.
set -sg escape-time 0
# mouse
set -g mouse on
# title properly
set-option -g set-titles on
# Getting emacs shortcuts back?
set-option -g default-command "zsh"
set -gw mode-keys emacs
set -g status-keys emacs
setw -g xterm-keys on
# Windowing (| for vertical splitting, - for horizontal splitting)
bind = split-window -h
bind - split-window -v
# Start at 1 instead... yes count from 0, but 0 is far away from `
set -g base-index 1
# Keybindings ----------------------------------------------------------------------------
# Using C-t as prefix instead, This is transpose which isn't really all too important
set-option -g prefix C-t
unbind C-b
bind C-t send-prefix
# Rebind on r
bind-key r source-file ~/.tmux.conf
# Colors ---------------------------------------------------------------------------------
# Current pane color
set -g pane-active-border-style bg=colour13,fg=colour12
# the status bar
set-option -g status-bg colour13
# set-option -g status-fg black
set -g status-left "#[fg=colour13,bg=colour4] #S #[fg=colour4,bg=colour13]"
set -g window-status-current-format "#[fg=colour13,bg=colour4] #I#F#W #[fg=colour4,bg=colour13]"
set -g status-right "#[fg=colour4,bg=colour13]#[fg=colour13,bg=colour4] %H:%M:%S "
# Use meta-arrow keys to change panes
bind -n M-m select-pane -L
bind -n M-/ select-pane -R
bind -n M-, select-pane -U
bind -n M-. select-pane -D
set -g mouse on
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'