-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
executable file
·51 lines (46 loc) · 1.56 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
49
50
51
#STYLES
#source-file ~/.vim/themes/tmux-custom.conf
source-file ~/.vim/themes/tmux-gray.conf
#source-file ~/.vim/themes/tmux-light.conf
#Send option
set-option -g prefix C-a
set-option -g default-shell "/bin/bash"
set -g default-shell $SHELL
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
unbind-key C-a
unbind-key Escape
bind-key C-a send-prefix
#Use Alt-arrow keys to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
bind-key u swap-pane -U
bind-key d swap-pane -D
#Shift arrow to switch windows
bind -n S-[ previous-window
bind -n S-] next-window
#Copy mode
#set-window-option -g mode-keys vi
#bind-key Escape copy-mode
#bind-key p paste-buffer
#bind-key -T copy-mode-vi Escape cancel
#bind-key -T copy-mode-vi v begin-selection
#bind-key -T copy-mode-vi V select-line
#bind-key -T copy-mode-vi y copy-selection
#bind-key -T copy-mode-vi r rectangle-toggle
# Setup 'v' to begin selection as in Vim
#
#set -g default-shell $SHELL
#bind-key -t vi-copy y copy-pipe 'reattach-to-user-namespace pbcopy'
# Bind ']' to use pbpaste
bind ] run "pbpaste | tmux load-buffer - && tmux paste-buffer"
bind-key -T copy-mode-vi y send-keys copy-pipe "pbcopy"
bind-key p run "pbpaste | tmux load-buffer - && tmux paste-buffer"
#Set easier window split keys
bind-key Down split-window -v
bind-key Right split-window -h
#
#Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded!"
bind-key p source-file ~/.vim/themes/tmux-dark.conf \; display-message "tmux.conf reloaded!"