-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
63 lines (55 loc) · 2.12 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
# General configuration.
# $ tmux show-options -g
set -g base-index 1
set -g display-time 5000
set -g repeat-time 1000
set -g escape-time 10
set -g status-keys vi
set -g status-bg black
set -g status-fg white
set -g status-justify left
set -g status-interval 1
set -g status-left-length 15
set -g status-right-length 55
set -g status-left "#[fg=white,bright,bg=blue] Session #[fg=yellow,bright,bg=blue]#S #[default] |" # session-name
set -g status-right "#[default] #[fg=yellow,bright] %Y-%m-%d #[fg=green]%H:%M:%S #[default]#[fg=magenta,bright]#[default]"
set -g default-terminal "screen-256color"
# Configuration for each window.
# $ tmux show-window-options -g
setw -g window-status-format " #I$ #W "
setw -g window-status-current-format " #I$ #W "
setw -g window-status-current-bg yellow
setw -g window-status-current-fg blue
setw -g window-status-current-attr default
# UTF-8 related settings (For tmux <= 2.1).
if-shell "if [ `tmux -V | cut -d ' ' -f2` '\<' '2.2' ]; then true; else false; fi" "set -g status-utf8 on; setw -g utf8 on"
# Customization for key bindings.
# Check it using "C-a + ?".
## Make tmux like screen, using Ctrl+A
unbind C-b
set -g prefix ^A
bind a send-prefix
## Use h and v for splitting.
unbind %
unbind '"'
bind v split-window -h
bind h split-window -v
## Use a for renaming the window prompt.
unbind ','
bind ` command-prompt -I '#W' "rename-window '%%'"
## Create a new window with previous working directory (For tmux >= 1.9).
if-shell "if [ `tmux -V | cut -d ' ' -f2` '\>' '1.8' ]; then true; else false; fi" "bind c new-window -c '#{pane_current_path}'; bind v split-window -h -c '#{pane_current_path}'; bind s split-window -v -c '#{pane_current_path}'"
# List of plugins
# Supports `github_username/repo` or full git URLs
#set -g @tpm_plugins " \
# tmux-plugins/tpm \
# tmux-plugins/tmux-sensible \
# tmux-plugins/tmux-resurrect \
#"
# Other examples:
# github_username/plugin_name \
# [email protected]/user/plugin \
# [email protected]/user/plugin \
# Initializes TMUX plugin manager.
# Keep this line at the very bottom of tmux.conf.
#run-shell ~/.tmux/plugins/tpm/tpm