This repository has been archived by the owner on Apr 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.tmux.conf
74 lines (54 loc) · 1.91 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
unbind C-Space
set-option -g prefix C-Space
bind C-space send-prefix
# set tmux_conf_theme_24b_colour=true
set-option -g set-titles on
set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# Enable statusbar only, if there are multiple tabs
## stolen from https://www.reddit.com/r/tmux/comments/6lwb07/is_it_possible_to_hide_the_status_bar_in_only_a/dpzr5d7/
if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"
set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'
set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"'
#new binds
set -g renumber-windows off
set -g automatic-rename off
set-option -g -q mouse on
setw -g mode-keys vi
unbind s
bind s copy-mode
# Setup 'v' to begin selection as in Vim
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi 'Enter' send -X copy-pipe "reattach-to-user-namespace pbcopy"
set -g base-index 1
setw -g aggressive-resize on
set -sg escape-time 0
bind r source-file ~/.tmux.conf
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind v split-window -h -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
unbind '"'
unbind %
bind x kill-pane
bind t set status
bind-key -n C-p prev
bind-key -n C-n next
## styling
# split lines
set -g pane-border-style fg=brightblack
set -g pane-active-border-style fg=brightblack
# statusline
set -g status-bg black
set -g status-fg white
set -g status-right ""
set -g status-left ""
set -g status-justify centre
set -g window-status-current-format "●"
set -g window-status-format "○"