-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
39 lines (38 loc) · 1.02 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
# fix os x clipboard and use zsh
set -g default-command "reattach-to-user-namespace -l zsh"
# rebind prefix to C-a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# use vi keys
set -g status-keys vi
setw -g mode-keys vi
# support nicer colorschemes
set -g default-terminal "screen-256color"
# extended history
set -g history-limit 10000
# start indexing at 1 for easier navigation
set-option -g base-index 1
setw -g pane-base-index 1
# vi style pane movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize using vi movement keys
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# Copy mode - ??? sketchy
#setw -g mode-keys vi
#bind ` copy-mode
#unbind [
#unbind p
#bind p paste-buffer
#bind -t vi-copy v begin-selection
#bind -t vi-copy y copy-selection
#bind -t vi-copy Escape cancel
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# if run as 'tmux attach', create a new session if one doesn't exist
new-session -n $HOST