mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Fix use of pbcopy, pbpaste, and launchctl within tmux on OSX
This commit is contained in:
8
bin/safe-reattach-to-user-namespace
Executable file
8
bin/safe-reattach-to-user-namespace
Executable 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
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user