-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
89 lines (74 loc) Β· 2.83 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
# Change leading key from CTRL + B to CTRL + A
set-option -g prefix C-a
set -sg escape-time 10
set -g mouse on # enable mouse support
set -g set-clipboard on # use system clipboard
set -g default-terminal "${TERM}"
# allow tmux to switch to an existing session when you close the final window on a session
set-option -g detach-on-destroy off
# Allow opening multiple terminals to view the same session at different sizes.
setw -g aggressive-resize on
# Add a bit more scroll history in the buffer.
set -g history-limit 50000
# Ensure window titles get renamed automatically.
setw -g automatic-rename
# Enable color support inside of tmux.
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
# Start windows and panes at 1, not 0
set -g base-index 1 # start indexing windows at 1 instead of 0
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Status bar
set -g status-interval 3 # update the status bar every 3 seconds
set -g status-position bottom # macOS / darwin style
set -g status on
# -----------------------------------------------------------------------------
# Key bindings
# -----------------------------------------------------------------------------
unbind-key C-a
bind-key C-a send prefix
# Use ALT/Option + arrow keys to switch panes
bind -n M-Left select-pane -L
# Set pane split
bind-key v split-window -h # Vertical split
bind-key h split-window # Horizontal split
bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt
set -g detach-on-destroy off # don't exit from tmux when closing a session
# Config reload with prefix + r
unbind r
bind r source-file ~/.tmux.conf
# loud or quiet?
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# -----------------------------------------------------------------------------
# Tmux Plugins
# -----------------------------------------------------------------------------
# Plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'christoomey/vim-tmux-navigator'
# Tmux Dracula theme
set -g @plugin 'dracula/tmux'
# Persists tmux environment across system restarts.
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'joshmedeski/t-smart-tmux-session-manager'
# Fzf support for FZF
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
set -g @plugin 'omerxx/tmux-sessionx'
# Dracula configuration
set -g @dracula-plugins "git"
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-fixed-location "top"
set -g @dracula-show-powerline true
set -g @dracula-show-empty-plugins false
# set -g @dracula-battery-label "Battery"
set -g @dracula-show-timezone false
set -g @dracula-git-show-remote-status true
run -b '~/.tmux/plugins/tpm/tpm'