-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
47 lines (36 loc) · 1.33 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
set-option -g prefix C-q
set -g default-terminal "xterm-256color-italic"
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
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
set-option -g default-command "reattach-to-user-namespace -l zsh"
# set-option -g default-path "$PWD"
set -g set-titles on
set -g set-titles-string "#W"
unbind %
bind | split-window -h -c '#{pane_current_path}'
unbind '"'
bind - split-window -v -c '#{pane_current_path}'
unbind c
bind + new-window -c '#{pane_current_path}'
bind-key k send-keys -R \; clear-history \; send-keys 'C-l'
set -g base-index 1
setw -g pane-base-index 1
# aliases
bind r source-file ~/.tmux.conf \; display "Reloading configs..."
# powerline
source /Users/samflores/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf
source /Users/samflores/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline_tmux_1.9_plus.conf
# mouse ON
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on