On 2013–07–19 Thomas Adam wrote:

> > I'd like to use a single tmux config file across different
> > computers. However, different versions of tmux are running on
> > individual computers, which I can't influence. This leads to errors
> > in the older tmux versions when options are not supported or named
> > differently, e.g.
> 
> You could use if-shell to source specific files on different machines.

You mean to create a set of commands like

  tmux_min_1.6
  tmux_min_1.7
  tmux_min_1.8
  etc.

and use something like this:

  if-shell tmux_min_1.7 'set-option -g renumber-windows on'

I tried it and it works. It feels a little fiddly, though; to create
a set of shell commands which check for the tmux version. Maybe you
had something more elegant in mind.

Another question in this context: How to determine the tmux version
reliably? I just figured that some versions support the -V flag, but
not all versions do.

Marco


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to