-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
93 lines (73 loc) · 2.53 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
# Michele Angrisano's Tmux configuration file. 2023
# Enable mouse mode (tmux 2.1 and above).
# If uncommented, the command-click to open urls in irssi doesn't work.
set -g mouse on
# Unbind old C-b
unbind-key C-b
# Set C-a like prefix
set-option -g prefix C-a
bind C-a send prefix
bind C-a last-window
bind e previous-window
bind f next-window
# Move between panes using vim style
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Copy-Mode with Escape instead of [
bind Escape copy-mode
unbind [
# Scrolling with fn + Page{Up,Down}
bind -n Pageup copy-mode -u
bind -n S-Pageup copy-mode -u
bind -n S-Pagedown send-keys Pagedown
bind s setw synchronize-panes on
bind S setw synchronize-panes off
# Copy-Paste in clipboard by vi-mode
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy"
# Set xterm-color
set -g default-terminal "xterm-256color"
# Start window numbering at 1
set -g base-index 1
# Start pane numbering at 1
setw -g pane-base-index 1
# Renumber windows after removing one
set -g renumber-windows on
# Keep plenty of history for scrollback
set -g history-limit 10000
# Lower the default tmux delay, this makes tmux more responsive.
set -s escape-time 1
# Restore the cursor shape when closing vim
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
# Set a session with a specific layout:
new -n home
new-window -n dev
# new-window -n irssi irssi
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'dracula/tmux'
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, network, network-bandwidth, network-ping, weather, time
set -g @dracula-show-powerline true
set -g @dracula-plugins "battery cpu-usage git ram-usage time"
set -g @dracula-show-fahrenheit false
set -g @dracula-show-timezone false
set -g @dracula-day-month true
set -g @dracula-ping-server "google.it"
set -g @dracula-ping-rate 5
# 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'