-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
97 lines (76 loc) · 2.61 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
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
#set scroll history to 100,000 lines
set-option -g history-limit 100000
# modern colors
set -g default-terminal "xterm-256color"
# tell Tmux that outside terminal supports true color
set -ga terminal-overrides ",xterm-256color*:Tc"
set -g default-terminal "tmux-256color"
# unbind the prefix and bind it to Ctrl-a like screen
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# copy to X clipboard
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard &> /dev/null'
bind -T copy-mode-vi Enter send-keys -X cancel
# shortcut for moving tmux buffer to clipboard
# useful if you've selected with the mouse
bind-key -nr C-y run "tmux show-buffer | xclip -in -selection clipboard &> /dev/null"
# Avoid ESC delay
set-option -sg escape-time 10
# Fix titlebar
set -g set-titles on
set -g set-titles-string "#T"
# VIM mode
set -g mode-keys vi
set-option -s set-clipboard off
bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i' w
# move bar to the top
set-option -g status-position top
# Mouse friendly
set -g mouse on
# Move between panes with vi keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key v copy-mode
bind-key V paste-buffer
# Split panes
bind | split-window -h -c "#{pane_current_path}"
bind _ split-window -v -c "#{pane_current_path}"
# Zoom pane
bind + resize-pane -Z
# Select pane and windows
bind -r Left select-pane -t :.-
bind -r Right select-pane -t :.+
bind -r Tab last-window # cycle thru MRU tabs
bind -r C-o swap-pane -D
# Move between panes with vi keys
bind-key d run-shell "~/.config/.tmux/sh/smart-kill-pane"
######################
### DESIGN CHANGES ###
######################
# Avoid date/time taking up space
set -g status-right ''
set -g status-right-length 0
# default shell
set -g default-command /bin/fish
set -g default-shell /bin/fish
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
set -g @dracula-show-network true
set -g @dracula-show-battery false
set -g @dracula-show-weather false
set -g @dracula-military-time true
set -g @dracula-show-left-icon window
set -g @dracula-border-contrast true
set -g @dracula-cpu-percent true
run -b '~/.tmux/plugins/tpm/tpm'