-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
118 lines (92 loc) · 3.79 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
unbind r
bind r source-file ~/.tmux.conf
# Inspired by:
# https://github.com/wincent/wincent/blob/master/roles/dotfiles/files/.tmux.conf
# Set prefix to space.
unbind-key C-b
set -g prefix C-Space
# Mouse can be used to select panes, select windows (by clicking on the status
# bar), resize panes. For default bindings see `tmux list-keys`.
set -g mouse on
# Bindings:
# - to see current bindings:
# tmux list-keys
# Vim-like key bindings for pane navigation (default uses cursor keys).
unbind-key h
bind-key h select-pane -L
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key l # normally used for last-window
bind-key l select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'frappe' # or frappe, macchiato, mocha
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin '[email protected]:user/plugin'
# set -g @plugin '[email protected]:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# Resizing (mouse also works).
# unbind-key Left
# bind-key -r Left resize-pane -L 5
# unbind-key Right
# bind-key -r Right resize-pane -R 5
# unbind-key Down
# bind-key -r Down resize-pane -D 5
# unbind-key Up
# bind-key -r Up resize-pane -U 5
# Improve colors
# set -g default-terminal 'tmux-256color'
# set -ga terminal-overrides ',xterm-256color:Tc'
# set -ga terminal-overrides ",*256col*:Tc"
# split panes using | and -
# bind | split-window -h
# bind - split-window -v
# unbind '"'
# unbind %
# # Set scrollback buffer to 10000
# set -g history-limit 10000
# # Automatically renumber window numbers on closing a pane (tmux >= 1.7).
# set -g renumber-windows on
# # Highlight active window.
# set -w -g window-status-current-bg red
# # # Stay in copy mode on drag end.
# # # (Would use `bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X
# # # stop-selection` but it is a bit glitchy.)
# # unbind-key -T copy-mode-vi MouseDragEnd1Pane
# # # Make double and triple click work outside of copy mode (already works inside it with default bindings).
# # bind-key -T root DoubleClick1Pane if-shell -Ft{mouse} '#{alternate_on}' "send-keys -M" "copy-mode -t{mouse}; send-keys -t{mouse} -X select-word"
# # bind-key -T root TripleClick1Pane if-shell -Ft{mouse} '#{alternate_on}' "send-keys -M" "copy-mode -t{mouse}; send-keys -t{mouse} -X select-line"
# # # Slightly more useful width in "main-vertical" layout; enough room for 3-digit
# # # line number gutter in Vim + 80 columns of text + 1 column breathing room
# # # (default looks to be about 79).
# # set -w -g main-pane-width 85
# Dynamically update iTerm tab and window titles.
# set -g set-titles on
# # # Needed as on tmux 1.9 and up (defaults to off).
# # # Added in tmux commit c7a121cfc0137c907b7bfb.
# # set -g focus-events on
# # # But don't change tmux's own window titles.
# # set -w -g automatic-rename off
# # # #T = standard window title (last command, see ~/.bash_profile)
# # # #h = short hostname
# # # #S = session name
# # # #W = tmux window name
# # #
# # # (Would love to include #(pwd) here as well, but that would only print the
# # # current working directory relative to the session -- ie. always the starting
# # # cwd -- which is not very interesting).
# # set -g set-titles-string "#T : #h > #S > #W"
# # # Show bells in window titles.
# # set -g window-status-bell-style fg=yellow,bold,underscore
# # # Turn off distracting border highlight: the background highlighting is probably
# # # enough. Default value of 8 comes from "pane-border-fg" in tmux's
# # # options-table.c.
# # set -g pane-active-border-fg 8
# # # Clipper.
# # bind-key y run-shell "tmux save-buffer - | nc -U ~/.clipper.sock"