-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
69 lines (56 loc) · 2.59 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
64
65
66
67
68
69
# vim: fdm=marker
# Enable Vi mode: this setting is automatically enabled if the EDITOR
# environment variable contains 'vi', I add it anyway to be sure it's enabled
# even if its missing.
set -g status-keys vi
setw -g mode-keys vi
# Use ctrl+space as leader key
set -g prefix C-Space
bind R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# Key bindings for splits and windows
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind Left swap-window -t -1 \; previous-window
bind Right swap-window -t +1 \; next-window
bind m rename-window "#{b:pane_current_path}"
# Copy mode (use OS clipboard)
bind Space copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi C-v send -X rectangle-toggle
bind -T copy-mode-vi Escape send -X cancel
bind -T copy-mode-vi y send -X copy-pipe "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe "pbcopy"
bind -T copy-mode-vi DoubleClick1Pane select-pane \; send -X select-word \; send -X copy-pipe "pbcopy"
# faster command sequences
set -sg escape-time 0
# Enable truecolor
set -g default-terminal "tmux-256color"
set-option -sa terminal-features ',xterm-kitty:RGB,xterm-256color:RGB'
set -g mouse on
# Stuff required by NeoVim
set-option -g focus-events on
# Theme {{{
# Generated with tmuxline.vim - https://github.com/edkolev/tmuxline.vim
set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
set -g message-command-style "fg=#7c6f64,bg=#ebdbb2"
set -g status-right-style "none"
set -g pane-active-border-style "fg=#d5c4a1"
set -g status-style "none,bg=#d5c4a1"
set -g message-style "fg=#7c6f64,bg=#ebdbb2"
set -g pane-border-style "fg=#ebdbb2"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "none"
setw -g window-status-separator ""
setw -g window-status-style "none,fg=#3c3836,bg=#d5c4a1"
set -g status-left "#[fg=#3c3836,bg=#d5c4a1] #S #[fg=#d5c4a1,bg=#d5c4a1,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=#d5c4a1,bg=#d5c4a1,nobold,nounderscore,noitalics]#[fg=#3c3836,bg=#d5c4a1] %Y-%m-%d %H:%M #[fg=#d5c4a1,bg=#d5c4a1,nobold,nounderscore,noitalics]#[fg=#3c3836,bg=#d5c4a1] #h "
setw -g window-status-format "#[fg=#3c3836,bg=#d5c4a1] #I #[fg=#3c3836,bg=#d5c4a1] #W "
setw -g window-status-current-format "#[fg=#d5c4a1,bg=#ebdbb2,nobold,nounderscore,noitalics]#[fg=#7c6f64,bg=#ebdbb2] #I #[fg=#7c6f64,bg=#ebdbb2] #W #[fg=#ebdbb2,bg=#d5c4a1,nobold,nounderscore,noitalics]"
# }}}