-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
33 lines (28 loc) · 910 Bytes
/
tmux.conf
File metadata and controls
33 lines (28 loc) · 910 Bytes
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
set-option -g default-shell /bin/zsh
source $HOME/conf/tmux/plugins/powerline/powerline/bindings/tmux/powerline.conf
# Enable in tmux
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Use vim keybindings in copy mode
setw -g mode-keys vi
#set -g default-terminal rxvt-unicode-256color
set -g default-terminal "screen-256color"
# 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"
# remap prefix to Control + a
set -g prefix C-b
#unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# quick pane cycling
unbind ^A
bind ^A select-pane -t :.+