-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
48 lines (37 loc) · 1.16 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
# customize status bar
setw -g window-status-current-bg cyan
setw -g window-status-current-attr bold
# this should fix vim background color
set -g default-terminal "screen-256color"
# make active pane border blue (barely noticable)
set -g pane-active-border-fg yellow
set -g prefix C-t
bind-key C-t last-window
# easier pane splitting
bind s split-window -h
bind v split-window -v
# easier pane resizing
bind > resize-pane -R 3
bind < resize-pane -L 3
bind + resize-pane -U 3
bind - resize-pane -D 3
# easier pane navigating
bind C-h select-pane -L
bind C-j select-pane -D
bind C-k select-pane -U
bind C-l select-pane -R
# copy/paste stuff (seems to not work)
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
# bind navigating indexes beginning at 1
# windows:
set -g base-index 1
# panes:
set -g pane-base-index 1
# supposed to prompt for name on window creation (doesn't work?)
bind-key c command-prompt -p "window name:" "new-window; rename-window '%%'"
# turning on pane focusing as described here:
# https://github.com/tmux-plugins/vim-tmux-focus-events
set -g focus-events on
# easily re-source this file
bind r source-file ~/.tmux.conf