Skip to content

Commit

Permalink
Fix use of pbcopy, pbpaste, and launchctl within tmux on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Aug 18, 2013
1 parent 5c56709 commit 3838db8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/safe-reattach-to-user-namespace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /usr/bin/env bash

# If reattach-to-user-namespace is not available, just run the command.
if [ -n "$(command -v reattach-to-user-namespace)" ]; then
reattach-to-user-namespace $@
else
exec "$@"
fi
3 changes: 3 additions & 0 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ set -g mouse-resize-pane on
set -g mouse-select-window on
set -g history-limit 10240

# Mac OS X fix for pbcopy, pbpaste, and launchctl
set-option -g default-command "safe-reattach-to-user-namespace -l $SHELL"

# Load Theme
source-file "${HOME}/.tmux/themes/powerline-block-green.tmuxtheme"

Expand Down

0 comments on commit 3838db8

Please sign in to comment.