tmux 3.2-rc4 syntax error

18 views
Skip to first unread message

Vladimir Bauer

unread,
Mar 11, 2021, 5:45:27 AM3/11/21
to tmux-...@googlegroups.com
I just tried tmux 3.2-rc4 without changing my configuration which was digestible by tmux 3.1.
I got syntax error for the following part of config:

set-option -s command-alias[101] switch-if-single={
    if -F "#{&&:#{==:#{session_windows},1},#{==:#{window_panes},1}}" "switch-client -l"
}

Is it expected? How do I change this so that it works with tmux 3.2-rc4?
--
Kind Regards,
Vladimir Bauer

Nicholas Marriott

unread,
Mar 11, 2021, 5:48:45 AM3/11/21
to Vladimir Bauer, tmux-users
You can't use {} like this anymore, it has to be valid commands. But you can just change this to:

set-option -s command-alias[101] 'switch-if-single=if -F "#{&&:#{==:#{session_windows},1},#{==:#{window_panes},1}}" "switch-client -l"'




--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/CADkDknatSQcW_%2B%3DjH_kbzwmp7kOH7ZV1-aPy5Oget5mQb%3D7QzQ%40mail.gmail.com.

Vladimir Bauer

unread,
Mar 11, 2021, 8:00:41 AM3/11/21
to Nicholas Marriott, tmux-users
Thank you! That worked.
Reply all
Reply to author
Forward
0 new messages