-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
60 lines (49 loc) · 1.66 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
# change to screen prefix key
set -g prefix C-a
set -g status-utf8 on
set -g default-terminal "screen-256color"
# start window numbering at 1
set -g base-index 1
# no escape sequence
set -sg escape-time 0
# agressive resizing
setw -g aggressive-resize on
# large history
set-option -g history-limit 100000
# key remapping
bind-key d detach
bind-key v server-info
bind-key ? list-keys
bind-key A command-prompt 'rename-window %%'
bind-key C-a last-window
bind-key | split-window -h
bind-key - split-window -v
bind-key k kill-window
bind-key x lock-server
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind : command-prompt
bind r source-file ~/.tmux.conf
# highlight current window
set-window-option -g window-status-current-bg red
set -g status-interval 5
set -g status-style "bg=#103640"
set-window-option -g clock-mode-style 12
set -g status-right-length 150
set -g status-right "#(~/dotfiles/scripts/now_playing.sh) #[fg=red]::#[fg=brightblue] #[bold]%d#[nobold] %b #[fg=red]::#[fg=brightblue] %H:%M "
# pane border colors
set-option -g pane-active-border-fg white
set-option -g pane-active-border-bg default
set-option -g pane-border-fg white
set-option -g pane-border-bg default
# caution: you have to install these plugins first
# keep tmux sessions when closing terms or restart
run-shell ~/dotfiles/bin/tmux-resurrect/resurrect.tmux
# search inside tmux with prefix+/, etc
run-shell ~/dotfiles/bin/tmux-copycat/copycat.tmux
# paste with cmd + v, use global clipboards
run-shell ~/dotfiles/bin/tmux-yank/yank.tmux
# open selection "o" open with default programm, CTRL+O with EDITOR
run-shell ~/dotfiles/bin/tmux-yank/yank.tmux