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
# Add keybindings for pane movement
bind-key -r -T prefix k select-pane -U
bind-key -r -T prefix j select-pane -D
bind-key -r -T prefix h select-pane -L
bind-key -r -T prefix l select-pane -R
bind-key -r -T prefix C-k select-pane -U
bind-key -r -T prefix C-j select-pane -D
bind-key -r -T prefix C-h select-pane -L
bind-key -r -T prefix C-l select-pane -R
unbind-key -T prefix l
# 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
bind-key -r -T prefix | split-window -h
@@ -30,10 +31,11 @@ bind-key -r -T prefix - split-window -v
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 #######################################################################################################
######################
### DESIGN CHANGES ###
######################
# panes
set -g pane-border-fg black
+12 -11
View File
@@ -32,17 +32,18 @@ echo "Updating brew, one moment..."
brew update
echo "Installing standard brew packages..."
which -s ag || brew install ag
which -s ctags || brew install ctags
which -s fswatch || brew install fswatch
which -s gcc || brew install gcc
which -s python3 || brew install python3 # must preceed macvim
which -s gvim || brew install macvim --with-python3
which -s node || brew install node
which -s rbenv || brew install rbenv
which -s tmux || brew install tmux
which -s watch || brew install watch
which -s wget || brew install wget
which -s ag || brew install ag
which -s ctags || brew install ctags
which -s fswatch || brew install fswatch
which -s gcc || brew install gcc
which -s python3 || brew install python3 # must preceed macvim
which -s gvim || brew install macvim --with-python3
which -s node || brew install node
which -s rbenv || brew install rbenv
which -s tmux || brew install tmux
which -s watch || brew install watch
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
ln -sf pip3 pip