I have the following line in my .tmux.conf:
if-shell 'test `uname` == "Darwin"' 'set-option -g default-command
"reattach-to-user-namespace -l zsh"'
Which is designed to make tmux wrap zsh with reattach-to-user-namespace
(see more about it here:
https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard) only when the
current host is a mac. However, this seems to only take effect on the
second window created in tmux, not on the first one that shows up when tmux
is first invoked. If I change the line above to be simply:
set-option -g default-command "reattach-to-user-namespace -l zsh"
Then it will work fine. Is there a way to make the if-shell/default-command
combination apply for the first window created by tmux when a session is
started?
Samer
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users