tundle
tundle copied to clipboard
tmux does not have '-V' option
Hi,
I'm running tmux on OpenBSD-current and attempting to run:
tmux source-file ~/.tmux.conf
spits out:
'~/.tmux/plugins/tundle/tundle' returned 1
When I run the script manually, this line returns 1:
tmux/plugins/tundle/scripts/helpers.sh: TMUX_VERSION="$(_get_digits_from_string_helper "$(tmux -V)")"
It looks like -V option, had it ever existed, has been removed.
rjc
-V is the command for getting the version. It works on mine.
% tmux -V tmux 1.9a
I know what the command is for :^)
Like I have said earlier, on OpenBSD - the platform on which tmux is being developed - it doesn't have that option - presumably, it had lost it over time. Therefore claiming that tundle is compatible with tmux version 1.6 and up is not true.
How about dropping the check altogether?
Hello @rjc,
The current tmux portable version seems to differ in some aspects with the OpenBSD one, sadly the -V option seems to be one of them, unfortunately such check is important to determinate which tmux features are available, tundle will behave different depending in how old is tmux in order to provide as many features as possible. I've just opened an issue upstream: https://github.com/tmux/tmux/issues/1141
If there is any other way to determinate the current version in OpenBSD I'll gladly incorporate such change , otherwise I'll add a better error message stating it as non supported platform =(