-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
90 lines (67 loc) · 2.28 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
# .tmux.conf - tmux configuration
# =========================================================
# - https://github.com/danishprakash/dotfiles
# - danishpraka.sh
# select window/pane by clicking on it
# set-option -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# term colors
set -g default-terminal "screen-256color"
set-option -g status-position bottom
set-option -sa terminal-overrides ',XXX:RGB'
# movement and other shortcuts
bind-key -n S-Up set-option -g status
bind-key -n S-Down set-option -g status
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
# toggle synchronize-panes
bind C-i setw synchronize-panes
# statusbar modifications
set -g status-justify right
set -g base-index 1
set -g status-left '#[fg=#878786]k8s:#(kubectl config current-context)'
set -g status-left-length 50
# window name format
setw -g window-status-format ' #I:#W '
setw -g window-status-current-style 'fg=#ffffff,bg=#000000'
setw -g window-status-current-format ' #I:#W '
# inactive pane label
setw -g window-status-style 'fg=#878786,bg=#000000'
# date and time
# set -g status-right '#[fg=#23242a,bg=#ffffff]#(TMUX_STATUSLINE=1 battery) #[fg=#23242a]/ #[fg=#23242a,bg=#ffffff]%H:%M / #[fg=#23242a,bg=#ffffff]%d/%m '
set -g status-right ''
set -g status-right-length 50
# status bar colors
set -g status-bg black
set -g status-fg colour8
set -sg escape-time 0
bind-key a send-prefix
set -g prefix C-b
# reload conf on prefix-r
unbind r
bind r source-file ~/.tmux.conf
# Vim style pane selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# tmux in practice freecodecamp article
set-option -g history-limit 10000
set-option -g status-style fg="#000000",bg="#000000"
# set-option -g default-command "reattach-to-user-namespace -l zsh"
# session selection indicator
set -wg mode-style bg="#323232"
set -wg window-style fg="#323232"
# keep pane border colors same
set -wg pane-border-style fg="#323232",bg="#000000"
set -wg pane-active-border-style fg="#65c27e",bg="#000000"
# command prompt background color
set -wg message-style bg="#23242a"
# keep active pane in focus
set -g window-style 'fg=#a8a7a9,bg=#000000'
set -g window-active-style 'fg=#d4d4d5,bg=#000000'
bind | split-window -h
bind \\ split-window -v
unbind '"'
unbind %