-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux
56 lines (43 loc) · 1.17 KB
/
tmux
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
# prefix
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# mouse
set -g mouse on
# set window split
bind-key v split-window -h
bind-key b split-window
# Activity monitoring
setw -g monitor-activity on
set -g visual-activity on
# hjkl pane traversal
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# new window
bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# auto window rename
set-window-option -g automatic-rename
# window indexes
set -g base-index 1
# No delay for escape key press
set -sg escape-time 0
# color
set -g default-terminal "screen-256color"
# THEME
set-option -g status-position top
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left ''
set -g status-right '#[fg=green]#(whoami) #[fg=yellow]#S #[fg=white]#[bold]%H:%M'
setw -g window-status-current-format "#I:#W"
setw -g window-status-format "#I:#W"
# statusline theme
# source "$HOME/.tmux/statusline"
# Vi copy/paste mode
set-window-option -g mode-keys vi