When using tmux with ‘reattach-to-user-namespace’ to enable clipboard copy paste support in OSX, you may have
However with this configuration, tmux will fails on another platforms such as linux when reattach-to-user-namespace not installed.
So, your have at least 2 option to prevent it.
- Prepare another
- Detect OS and use another
default-commandfor each OS.
First option is easy but dull. Who wants to write same content but very last line?
Second option seems not to be easy, but IS easy. You can do like:
Detect OS pattern
Detect OS and load os specific configuration file pattern