-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_tmux.conf
More file actions
112 lines (94 loc) · 3.47 KB
/
Copy pathdot_tmux.conf
File metadata and controls
112 lines (94 loc) · 3.47 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
#
# .tmux.conf
#
# By wxharry
#
# List of plugins
#
# IMPORTANT: adding a @plugin line here does NOT install it.
# `tpack init` (bottom of this file) only sources plugins already present in
# ~/.tmux/plugins and binds the manager keys. Nothing is ever cloned at config
# load time.
#
# After adding/removing a plugin: `tpack install` (or prefix + I in tmux)
# Check what is actually on disk: ls ~/.tmux/plugins
#
# Skipping this is silent: the plugin's options below are set, tmux reports no
# error, and the plugin simply never runs.
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @prefix_highlight_fg '#bd93f9'
set -g @prefix_highlight_bg '#282a36'
set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_copy_mode_attr 'fg=#282a36,bg=#bd93f9,bold'
set -g @plugin 'sainnhe/tmux-fzf'
#set -g @plugin 'sei40kr/tmux-doom-one-dark'
# Some tweaks to the status line
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
#set -g window-status-current-attr "underscore"
# add new color theme
#set -ga status-left '#[bg=#44475a]#[fg=#ff79c6] #{=28:session_name}, '
set-option -g status-left-length '80'
set-option -g status-left '#[bg=#44475a]#[fg=#ff79c6] #S '
set-option -g message-command-style 'bg=#3e4452,fg=#d9d9d9'
set-option -g message-style 'bg=#3e4452,fg=#d9d9d9'
set-option -g status-justify left
set-option -g status-left-style 'bold'
set-option -g status-style 'bg=#3e4452,fg=#d9d9d9'
set-option -g window-status-current-format ' [#I] #W '
set-option -g window-status-current-style 'bg=#7EAAC7,fg=#282c34'
set-option -g window-status-format ' [#I] #W '
set-option -g window-status-separator ' '
set-option -g window-status-style ''
# pane border
set -g pane-border-style fg='#6272a4'
set -g pane-active-border-style fg='#ff79c6'
set -g window-style 'fg=colour242'
set -g window-active-style 'fg=terminal'
# SetFocus Gained
set -g focus-events on
# If running inside tmux ($TMUX is set), then change the status line to red
%if #{TMUX}
set -g status-bg red
%endif
# Enable RGB colour if running in xterm(1)
set-option -sa terminal-overrides ",xterm*:Tc"
# Change the default $TERM to tmux-256color
set -g default-terminal "tmux-256color"
# No bells at all
#set -g bell-action none
# Keep windows around after they exit
#set -g remain-on-exit on
# Change the prefix key to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Turn the mouse on, but without copy mode dragging
set -g mouse on
#unbind -n MouseDrag1Pane
#unbind -Tcopy-mode MouseDrag1Pane
# Copy mode — vi keys, visible highlight, clipboard integration
setw -g mode-keys vi
set -g mode-style 'bg=colour3,fg=colour0'
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
# Bell settings
set -g bell-action any
set -g visual-bell on
setw -g monitor-bell on
set-window-option -g window-status-bell-style fg=#bd93f9,bold,italics
# Pass Option+Arrow and Option+Delete through to shell for word jump/delete
bind -n M-Left send-keys M-Left
bind -n M-Right send-keys M-Right
bind -n M-BSpace send-keys '\e\x7f'
# Pane navigation with prefix+hjkl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Initialize tpack (keep this line at the very bottom of tmux.conf)
run 'tpack init'