-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_tmux.conf
More file actions
119 lines (96 loc) · 5.29 KB
/
dot_tmux.conf
File metadata and controls
119 lines (96 loc) · 5.29 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# -- general -------------------------------------------------------------------------------------------------
set-option -g default-shell $SHELL # Default shell
set-option -g default-command $SHELL # Default shell
set -g default-terminal "tmux-256color"
set-option -ga terminal-overrides ',xterm-256color:Tc'
set -s escape-time 1
set -g history-limit 50000
set -g prefix C-a # remap prefix to Control + a
bind C-a send-prefix # bind 'C-a C-a' to type 'C-a'
unbind C-b
bind C-s set-window-option synchronize-panes # Sync panes
bind P pipe-pane -o "cat>>~/#W.log"\; display "Log on ~/#W.log" # Log to file
bind r source-file ~/.tmux.conf \; display "Reloaded!" # Reload
set -g focus-events on
# -- navigation ----------------------------------------------------------------------------------------------
set-option -g mouse on # Mouse
setw -g mode-keys vi # vi keys
bind h select-pane -L # Move between panes h,j,k,l
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind N select-layout -n
bind | split-window -h # Split panes with | and -
bind - split-window -v
bind -r H resize-pane -L 5 # Pane resing H,J,K,L
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind -r C-h select-window -t :- # Quick windows selection
bind -r C-l select-window -t :+
unbind t
bind t new-window -c "#{pane_current_path}"
# -- copy mode -----------------------------------------------------------------------------------------------
bind Escape copy-mode
bind C-p run-shell "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
bind C-y run-shell "tmux show-buffer | xclip -sel clip -i"
unbind p
bind p paste-buffer
## Colors
# set -g status on
# set -g status-interval 1
# set -g status-left-length 100
# set -g status-right-length 100
# set -g status-style "fg=white,bg=#1c1c24"
# set -g status-justify absolute-centre
#
# set -g message-style "fg=black,bg=cyan"
#
# set -g status-left "#[fg=black,bg=cyan] #H #[fg=white,bg=black] #S #{prefix_highlight}"
#
# set -g status-right " #[fg=white,bg=black] %A %d %b #[fg=black,bg=cyan] %I:%M:%S %p "
#
# setw -g window-status-separator " "
# setw -g window-status-format "#[fg=black,bg=brightwhite] #I #[fg=white,bg=black] #W "
# setw -g window-status-current-format "#[fg=black,bg=yellow] #I #[fg=white,bg=black] #W "
# tmux-plugins/tmux-prefix-highlight support
# set -g @prefix_highlight_output_prefix "#[fg=black]#[bg=yellow]"
# set -g @prefix_highlight_output_suffix ""
set -g mode-style "fg=#82aaf9,bg=#52525b"
set -g message-style "fg=#82aaf9,bg=#52525b"
set -g message-command-style "fg=#82aaf9,bg=#52525b"
set -g pane-border-style "fg=#52525b"
set -g pane-active-border-style "fg=#82aaf9"
set -g status "on"
set -g status-justify "left"
set -g status-style "fg=#82aaf9,bg=#000000"
set -g status-left-length "100"
set -g status-right-length "100"
set -g status-left-style NONE
set -g status-right-style NONE
# set -g status-left "#[fg=#000000,bg=#82aaf9,bold] #S #[fg=#82aaf9,bg=#000000,nobold,nounderscore,noitalics]"
set -g status-left "#[fg=#000000,bg=#82aaf9] #H #[fg=#82aaf9,bg=#000000] #S #{prefix_highlight}"
# set -g status-right "#[fg=#000000,bg=#000000,nobold,nounderscore,noitalics]#[fg=#82aaf9,bg=#000000] #{prefix_highlight} #[fg=#52525b,bg=#000000,nobold,nounderscore,noitalics]#[fg=#82aaf9,bg=#52525b] %Y-%m-%d %I:%M %p #[fg=#82aaf9,bg=#52525b,nobold,nounderscore,noitalics]#[fg=#000000,bg=#82aaf9,bold] #h "
set -g status-right " #[fg=#000000,bg=#000000] %A %d %b #[fg=#82aaf9,bg=#000000] %I:%M:%S %p "
setw -g window-status-activity-style "underscore,fg=#dddddd,bg=#000000"
setw -g window-status-separator ""
setw -g window-status-style "NONE,fg=#dddddd,bg=#000000"
# setw -g window-status-format "#[fg=#000000,bg=#000000,nobold,nounderscore,noitalics]#[default] #I #W #F #[fg=#000000,bg=#000000,nobold,nounderscore,noitalics]"
# setw -g window-status-current-format "#[fg=#000000,bg=#52525b,nobold,nounderscore,noitalics]#[fg=#82aaf9,bg=#52525b,bold] #I #W #F #[fg=#52525b,bg=#000000,nobold,nounderscore,noitalics]"
setw -g window-status-format "#[fg=black,bg=brightwhite] #I #[fg=white,bg=black] #W "
setw -g window-status-current-format "#[fg=black,bg=yellow] #I #[fg=white,bg=black] #W "
# tmux-plugins/tmux-prefix-highlight support
# set -g @prefix_highlight_output_prefix "#[fg=#e6b672]#[bg=#000000]#[fg=#000000]#[bg=#e6b672]"
set -g @prefix_highlight_output_prefix "#[fg=black]#[bg=yellow]"
set -g @prefix_highlight_output_suffix ""
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'TSoli/kanagawa-dragon-tmux'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'