From 52e23324663e5f455dc8c6ba422603ae1ea3b68b Mon Sep 17 00:00:00 2001 From: Ellis Berner Date: Mon, 16 Dec 2013 10:24:31 -0800 Subject: [PATCH] Safely add reattach-to-user-namespace --- tmux/tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 778d0eb..97230a2 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -51,7 +51,7 @@ set -g window-status-format "#[fg=colour235,bg=colour252,bold] #I #W " set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=black,bg=colour39,noreverse,bold] #I: #W #[fg=colour39,bg=colour234,nobold]⮀" # Patch for OS X pbpaste and pbcopy under tmux. -# set-option -g default-command "reattach-to-user-namespace -l zsh" +set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l zsh || zsh" # Screen like binding unbind C-b