-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
executable file
·92 lines (73 loc) · 2.52 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
# 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 %
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
#navigate using Vim shortcuts
setw -g mode-keys vi
# Enable mouse control (clickable windows, panes, resizable panes)
#set -g mouse-select-window on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
set-option -g mouse on
set -g set-clipboard on
# scrollback buffer
set -g history-limit 10000
# 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
# modes
setw -g clock-mode-colour colour5
#setw -g mode-style 'fg=colour1 bg=colour18 bold'
# panes
#set -g pane-border-style 'fg=colour19 bg=colour0'
#set -g pane-active-border-style 'bg=colour0 fg=colour9'
# status update interval
set -g status-interval 1
#
# statusbar
set -g status-bg colour237
set -g status-fg colour246
set-option -g pane-active-border-style fg=colour239
set-option -g pane-border-style fg=colour237
set -g mode-style fg=colour235,bg=colour66
set-option -g message-style bg=colour66,fg=colour235
set-option -g status-justify "left"
set-option -g status-left-style none
set-option -g status-left-length "80"
set-option -g status-right-style none
set-option -g status-right-length "80"
set-option -g status-right '#(gitmux -cfg ~/.gitmux.conf "#{pane_current_path}") %H:%M:%S '
set-window-option -g window-status-separator " "
set-window-option -g window-status-current-format "#[fg=colour66]#W"
set-window-option -g window-status-format "#W"
# messages
#set -g message-style 'fg=colour232 bg=colour16 bold'
# fix terminal colors issue with nvim
set -g default-terminal "screen-256color"
set -g terminal-overrides ",xterm-256color:RGB"
# allow the arrow key to be used immediately after changing windows
set-option -g repeat-time 0
# fix nvim escape time
set -g escape-time 10
# fix nvim focus events issue
set -g focus-events on
# fix color issues in nvim
# set-option -sa terminal-overrides ',gnome-terminal:RGB'
# set -ag terminal-overrides ",*:RGB"
# set-option -sa terminal-overrides ',vte-256color:RGB'
# set-option -sa terminal-overrides ',gnome:RGB'
# fix alacritty color
# set -g default-terminal "xterm-256color"
#if 'infocmp -x alacritty > /dev/null 2>&1' 'set -g default-terminal "alacritty"'
#set -ag terminal-overrides ",alacritty:RGB"
set -g default-shell /usr/bin/zsh