-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
67 lines (53 loc) · 2.68 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
# Use zsh
set -g default-shell /usr/bin/zsh
# Plugins
set -g @plugin "arcticicestudio/nord-tmux"
set -g @plugin "jonmosco/kube-tmux"
# Appearance
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",*256col*:Tc"
set -g @nord_tmux_show_status_content "0"
set -g status-left "#[fg=black,bg=blue,bold] #S #[fg=blue,bg=black,nobold,noitalics,nounderscore]"
set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #(/bin/bash $HOME/.tmux/plugins/kube-tmux/kube.tmux 250 black black) "
set -g window-status-format "#[fg=black,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack,nobold,noitalics,nounderscore] #[fg=white,bg=brightblack]#W #F #[fg=brightblack,bg=black,nobold,noitalics,nounderscore]"
set -g window-status-current-format "#[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#I #[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#W #F #[fg=cyan,bg=black,nobold,noitalics,nounderscore]"
set -g window-status-separator ""
set -g status-right-length 100
# Longer history
set -g base-index 1 # start windows numbering at 1
set -g history-limit 10000
# Display
setw -g automatic-rename off # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed
set -sg escape-time 0 # No delay for escape key press
set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000 # slightly longer status messages display time
set-option -g focus-events on # neovim wants this (see :CheckHealth)
# Mouse stuff
set-option -g mouse on
# Copy-paste stuff
bind v copy-mode
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send -X copy-pipe "xclip -selection c"
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
# Navigation
bind h select-pane -L # move left
bind j select-pane -D # move down
bind k select-pane -U # move up
bind l select-pane -R # move right
bind N switch-client -n # next session
bind P switch-client -p # next session
bind _ split-window -v -c "#{pane_current_path}" # split current window horizontally
bind - split-window -h -c "#{pane_current_path}" # split current window vertically
# Kill pane without confirmation
bind x kill-pane
# Resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Reload config
unbind r
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# Plugin manager
run "~/.tmux/plugins/tpm/tpm"