automatically use 'reattach-to-user-namespace' when available

This commit is contained in:
Gregory Pakosz
2013-08-03 10:13:54 +02:00
parent 0012947087
commit e799504a9b
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -28,6 +28,9 @@ bind e new-window -n '~/.tmux.conf' '${EDITOR:-vim} ~/.tmux.conf && tmux source
# reload configuration
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
# see https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set -g default-command "type -p reattach-to-user-namespace &>/dev/null && reattach-to-user-namespace -l $SHELL || $SHELL -l"
# -- display -------------------------------------------------------------------
@@ -118,6 +121,7 @@ bind -t vi-copy Escape cancel
bind -t vi-copy H start-of-line
bind -t vi-copy L end-of-line
# -- user defined --------------------------------------------------------------
source ~/.tmux.conf.local