Update tmux to hook into the MacOS clipboard

This commit is contained in:
Andrew Miner
2018-04-12 11:02:55 -06:00
parent 9c87510c00
commit 16dc6a46b6
2 changed files with 22 additions and 19 deletions
+10 -8
View File
@@ -16,13 +16,14 @@ unbind r
bind r source-file ~/.tmux.conf bind r source-file ~/.tmux.conf
# Add keybindings for pane movement # Add keybindings for pane movement
bind-key -r -T prefix k select-pane -U bind-key -r -T prefix C-k select-pane -U
bind-key -r -T prefix j select-pane -D bind-key -r -T prefix C-j select-pane -D
bind-key -r -T prefix h select-pane -L bind-key -r -T prefix C-h select-pane -L
bind-key -r -T prefix l select-pane -R bind-key -r -T prefix C-l select-pane -R
unbind-key -T prefix l
# Bindings for history management # Bindings for history management
bind-key C-l send-keys C-l \; clear-history bind-key -r -T prefix BSpace send-keys C-l \; clear-history
# Bindings for splitting # Bindings for splitting
bind-key -r -T prefix | split-window -h bind-key -r -T prefix | split-window -h
@@ -30,10 +31,11 @@ bind-key -r -T prefix - split-window -v
unbind '"' unbind '"'
unbind % unbind %
# Allow copy-n-paste to system clipboard
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Visual Styling ####################################################################################################### # Visual Styling #######################################################################################################
######################
### DESIGN CHANGES ###
######################
# panes # panes
set -g pane-border-fg black set -g pane-border-fg black
+1
View File
@@ -43,6 +43,7 @@ which -s rbenv || brew install rbenv
which -s tmux || brew install tmux which -s tmux || brew install tmux
which -s watch || brew install watch which -s watch || brew install watch
which -s wget || brew install wget which -s wget || brew install wget
which -s reattach-to-user-namespace || brew install reattach-to-user-namespace --with-wrap-pbcopy-and-pbpaste
pushd /usr/local/bin >/dev/null pushd /usr/local/bin >/dev/null
ln -sf pip3 pip ln -sf pip3 pip