-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
51 lines (38 loc) · 1.34 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
# Enable mouse wheel
set -g mouse on
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Remove [,] keybindings
unbind [
unbind ]
# Use current working path when creating a new window
bind-key c new-window -c "#{pane_current_path}"
# Make copying more vim-like
bind Escape copy-mode
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "xclip -sel clip -i"
# Use clipboard for copying
bind-key p run-shell "xclip -sel clip -o | tmux load-buffer - ; tmux paste-buffer"
# Shorten command delay
set-option -sg escape-time 0
# Use zsh as default shell
set-option -g default-shell /bin/zsh
# Enable status bar
set -g status on
set -g default-terminal "xterm-256color"
# Status bar
set -g status-justify left
set -g status-bg colour8
set -g status-fg default
set -g status-interval 2
# Window status
setw -g window-status-format "#[fg=colour0]#[bg=colour242] #I#[fg=colour0]#[bg=colour242] #F#W#F "
setw -g window-status-current-format "#[fg=colour0]#[bg=colour11] #I#[fg=colour0]#[bg=colour11] #F#W#F "
# Status on left
set -g status-left-length 20
set -g status-left "#[fg=colour0]#[bg=bg=colour242]"
# Status on right
set -g status-right-length 60
set -g status-right "#[fg=colour0]#[bg=bg=colour242] #[fg=colour15][#H]#[fg=colour6] %a %b %d %l:%M %p "
# Clock settings
setw -g clock-mode-style 12