-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
56 lines (44 loc) · 1.49 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
# list of plugins to install
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @dracula-plugins "battery cpu-usage ram-usage"
set -g @dracula-show-powerline true
set-option -g default-shell /bin/zsh
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# close panes/windows without confirmation
bind-key & kill-window
bind-key x kill-pane
# start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# rename tmux window to current directory
set-option -g status-interval 1
set-option -g automatic-rename on
set-option -g automatic-rename-format '#{b:pane_current_path}'
# show when prefix is selected in status bar
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
# enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# set default term to xterm
set -g default-terminal xterm-256color
# load tpm
run '~/.tmux/plugins/tpm/tpm'