-
Notifications
You must be signed in to change notification settings - Fork 4
/
.tmux.conf
39 lines (31 loc) · 1.1 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
# make the transition from screen a little easier:
# make ctrl-a the default command key instead of ctrl-b
set -g prefix C-a
# make ctrl-a ctrl-a switch to last used window
bind-key C-a last-window
# make ctrl-a a send ctrl-a
bind-key a send-prefix
#ctrl-a A prompts for new window name
bind-key A command-prompt -I "#W" "rename-window '%%'"
# reset the status line foreground and background to default (prior to tmux 3.2)
# set -g status-bg default
# set -g status-fg default
# tmux 3.2+ (https://github.com/tmux/tmux/issues/2645)
set -g status-style bg=default
# toggle the status line
bind-key u set-option status
# use "v" and "s" to do vertical/horizontal splits, like vim
bind s split-window -v
bind v split-window -h
# use the vim motion keys to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# use vim motion keys while in copy mode
setw -g mode-keys vi
# don't act like esc is being held down for next key-- wreaks hell with emacs evil mode
set escape-time 0
set -g default-terminal "screen-256color"
# requires tmux 2.1 or later
set -g mouse on