forked from marcelbeumer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
37 lines (29 loc) · 933 Bytes
/
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
# Mac copy-paste workarounds
set-option -g default-command "reattach-to-user-namespace -l bash"
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind p run "tmux paste-buffer"
# Clear tmux pane with ctrl-k (like cmd-k clears a terminal) without
# polluting the bash history
bind-key -n C-k send-keys "clear && tmux clear-history; history -d $((\$HISTCMD-1))" \; send-keys "Enter"
# Force color support
set -g default-terminal "screen-256color"
# Remap prefix
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Reload tmux conf binding
unbind r
bind r source-file ~/.tmux.conf
# act like vim
setw -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# make mouse useful in iTerm
set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on
# Theme
source ~/.tmux.theme.conf