Skip to content

Commit

Permalink
Fix macOS pbcopy/pbpaste not working in tmux
Browse files Browse the repository at this point in the history
Some issue with pbcopy/pbpaste not being able to access the clipboard
in tmux. There's a macOS specific fix, with Homebrew install:

- `brew install reattach-to-user-namespace`
- https://git.io/vdBnv
  • Loading branch information
Pinjasaur committed Oct 5, 2017
1 parent 105889e commit 86c9988
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ unbind C-b
set -g prefix C-a
bind C-a send-prefix

# Set default shell
set -g default-shell $SHELL

# macOS fix for pbcopy/pbpaste
if-shell "uname | grep -q Darwin" \
'set -g default-command "reattach-to-user-namespace -l ${SHELL}"'

# Better colors
set -g default-terminal "screen-256color"

Expand Down

0 comments on commit 86c9988

Please sign in to comment.