【发布时间】:2013-09-22 12:00:14
【问题描述】:
我正在寻找一个好的解决方法来保持我的.tmux.conf 文件在系统之间保持一致(我有 OS X 和 Ubuntu,它们有不同的复制/粘贴支持技术)当我遇到这个提供解决方案的评论时: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/issues/8#issuecomment-4134987
但在我在评论中使用代码 sn-p 之前,我想完全了解它在做什么。特别是,我不太明白最后一行,bash man page for parameter substitution 并没有太大帮助。
这是行:
exec /path/to/actual/tmux ${cfg+-f "$cfg"} "$@"
具体来说,${cfg+-f "$cfg"} 部分是什么意思?
【问题讨论】:
标签: bash shell tmux variable-substitution