I was looking for a good workaround for keeping my .tmux.conf
file consistent across systems (I have both OS X and Ubuntu and they have different techniques for copy/paste support) when I came across this comment that offered a solution: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/8#issuecomment-4134987
But before I use the code snippet in the comment, I'd like to fully understand what it's doing. In particular, I don't quite understand the last line, and the bash man page for parameter substitution didn't help much.
This is the line:
exec /path/to/actual/tmux ${cfg+-f "$cfg"} "$@"
Specifically, what does the ${cfg+-f "$cfg"}
part mean?