-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
92 lines (88 loc) · 2.87 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
# Tmux configuration
# Global
## Mouse mode
set -g mouse off
## Activity notifications
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
## Terminal string
set -g default-terminal "xterm-256color"
## Vi mode keys
setw -g mode-keys vi
## History
set -g history-limit 100000
## Lower the default tmux delay, this makes tmux more responsive.
set -s escape-time 1
# Keybindings
## Prefix key
unbind C-b
set-option -g prefix `
bind-key ` send-prefix
## Window splits
bind v split-window -h
bind s split-window -v
unbind '"'
unbind %
bind = select-layout tiled
bind | select-layout even-horizontal
## Use Vim movement key mappings for switching around between panes.
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind \; choose-tree
## Move panes between windows
## https://unix.stackexchange.com/a/14301/16225
bind g command-prompt -p "Join pane from:" "join-pane -s ':%%'"
bind C-s command-prompt -p "Send pane to:" "join-pane -t ':%%'"
## Reload config
bind r source-file ~/.tmux.conf
## Last window
bind ^ last-window
## Copy between tmux buffers and system clipboard (macOS)
## https://unix.stackexchange.com/a/16405
bind C-p run "tmux set-buffer \"$(pbpaste)\"; tmux paste-buffer"
bind C-y run "tmux save-buffer /dev/stdout | pbcopy"
# Display
set -g main-pane-width 100
## derived from Powerline Double Cyan by Jim Myhrberg
set -g status-interval 10
set -g status-fg colour245
set -g status-bg colour233
set -g status-left "#H"
set -g status-left-length 20
set -g status-right "%m-%d-%Y %R %Z"
set -g window-status-format "#[bg=colour233,fg=colour245] ⋅#I#{?window_zoomed_flag,+,}⋅ #W "
set -g window-status-current-format "#[bg=colour233,fg=colour245] 《#I#{?window_zoomed_flag,+,}》#W #[fg=black,bg=colour233]"
#set -g window-status-current-bg colour39
#set -g window-status-current-fg colour245
#set -g window-status-activity-bg colour245 # fg and bg are flipped here due to
#set -g window-status-activity-fg colour233 # a bug in tmux
set -g window-status-separator ""
set -g status-justify centre
#set -g pane-border-bg default
#set -g pane-border-fg colour238
#set -g pane-active-border-bg default
#set -g pane-active-border-fg colour39
set -g display-panes-colour colour233
set -g display-panes-active-colour colour245
set -g clock-mode-colour colour39
#set -g message-bg black
#set -g message-fg colour39
#set -g message-command-bg colour233
#set -g message-command-fg black
#set -g mode-bg colour39
#set -g mode-fg colour233
set-window-option -g window-status-bell-style fg=black,bg=red
# Default session
new-session -s workspace -c ~/Workspace vim
new-window -t 1 bash -l
split-window -h -t 1 -c ~/Workspace bash -l
select-pane -t 0
select-window -t 0
split-window -h -t 0 -c ~/Workspace bash -l
select-layout -t 0 main-vertical-mirrored
select-pane -t 0