Fix use of pbcopy, pbpaste, and launchctl within tmux on OSX

This commit is contained in:
2013-08-18 22:45:40 +01:00
parent 5c56709b8b
commit 3838db8f7b
2 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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"