automatically use 'reattach-to-user-namespace' when available
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user