-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
43 lines (32 loc) · 1.59 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
set -g default-terminal "screen-256color"
set -g mouse on
set -g status off
set -g display-panes-time 3000 # display time for C-b q
bind-key x kill-pane # disable confirmation for killing pane
# colors: https://i.stack.imgur.com/e63et.png
# reload live config with: `reload` and then `tmux source-file ~/.tmux.conf`. 🚨 You have to run them separately.
set -g window-active-style "fg=colour250,bg=terminal"
set -g window-style "fg=colour242,bg=color234" # fg=colour235,bg=colour238
set -g pane-active-border-style "fg=color234"
set -g pane-border-style "fg=color234"
set-option -g default-command $SHELL
set -g pane-border-status off
# set -g pane-border-format " #{pane_index} " # #(echo '#{pane_current_path}' | rev | cut -d'/' -f-1 | rev) "
bind-key b set-window-option synchronize-panes # ctrl+b => (release ctrl) => b
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Plugins
## First install: https://github.com/tmux-plugins/tpm
## Installing plugins
# - Add new plugin to ~/.tmux.conf with set -g @plugin '...'
# - Press prefix + I (capital i, as in Install) to fetch the plugin. < - - - - - DONT FORGET!
set -g @plugin "jlipps/tmux-safekill"
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
set-option -g set-titles on
set-option -g set-titles-string "#S"
set-hook -g client-attached 'set -g set-titles-string "#S"'
set-hook -g session-created 'set -g set-titles-string "#S"'
set-option -g detach-on-destroy off # automatically attach to a session when one is killed