added a few configs and a private zshrc

This commit is contained in:
hellerve
2016-01-25 14:41:47 +01:00
parent 7dba9df37f
commit 8c10ebc330
2 changed files with 21 additions and 3 deletions

View File

@@ -19,3 +19,20 @@ bind m \
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# Copy-paste integration
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Use vim keybindings in copy mode
setw -g mode-keys vi
# 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"
# Bind ']' to use pbpaste
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"