-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
86 lines (61 loc) · 1.6 KB
/
.tmux.conf
File metadata and controls
86 lines (61 loc) · 1.6 KB
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
# ============
# .tmux.conf
# ============
# keybind
# ============
## prefix
unbind-key C-b
set-option -g prefix C-t
# bind-key C-t send-prefix
## unbind keys
unbind-key d
bind-key d confirm-before detach-client
unbind-key C-u
unbind-key C-r
unbind-key C-d
unbind-key C-l
unbind-key C-Up
unbind-key C-Down
unbind-key C-Left
unbind-key C-Right
unbind-key C-y
unbind-key ]
unbind-key @
## emacs like
unbind-key k
bind-key k confirm-before kill-window
unbind-key C-k
bind-key C-k confirm-before kill-session
unbind-key 2
bind-key 2 split-window
unbind-key 3
bind-key 3 split-window -h
bind-key r source-file ~/.tmux.conf \; display "Reloaded!"
# setting
# ============
# ESC or M-
set -s escape-time 0
set-option -g base-index 1
set-option -g mouse on
set-option -g display-time 2000
set-option -g buffer-limit 32
set-option -g status-interval 5
set-option -g default-terminal xterm-256color
# status line
# ============
## color
set-option -g status-style fg=white,bg=colour239
set-option -g status-left-style fg=white,bg=colour24
set-option -g status-right-style fg=white,bg=colour22
set-option -g window-status-current-style fg=white,bg=colour125,bold
## message/prompt
set-option -g message-style fg=colour232,bg=colour142,bright
## status-right
set-option -g status-right "#h"
# Clipboard
# ==========
set-window-option -g mode-keys emacs
set-option -g default-shell $SHELL
if-shell "uname | grep -q Darwin" "source-file ~/dotfiles/.tmux.macos.conf" ""
if-shell "uname | grep -q Linux" "source-file ~/dotfiles/.tmux.linux.conf" ""
if-shell "uname -r | grep -q microsoft" "source-file ~/dotfiles/.tmux.wsl2.conf" ""