Skip to content

Instantly share code, notes, and snippets.

@todashuta
Created June 11, 2013 13:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todashuta/5756668 to your computer and use it in GitHub Desktop.
Save todashuta/5756668 to your computer and use it in GitHub Desktop.
# .tmux.conf の if はどうも頼りないので default-command に全部まとめちゃう
# .tmux.conf にこれを書くだけ
set-option -g default-command 'which reattach-to-user-namespace > /dev/null 2>&1 && reattach-to-user-namespace -l $SHELL || $SHELL'
# オマケ: バックスラッシュで改行できる...!
set-option -g default-command \
'which reattach-to-user-namespace > /dev/null 2>&1 && \
reattach-to-user-namespace -l $SHELL || $SHELL'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment