Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux error: quiet option is no more supported. #24

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tmuxomatic
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ def signal_handler_hup( signal_number, frame ):
_ = repr(signal_number) + repr(frame) # Satisfies pylint
raise KeyboardInterrupt

def support_quiet_option(version):
return float(version) < 2.5

def satisfies_minimum_version(minimum, version):
"""
Asserts compliance by tmux version. I've since seen a similar version check somewhere that may come with Python
Expand Down Expand Up @@ -2090,7 +2093,8 @@ def tmuxomatic( program_cli, full_cli, user_wh, session_name, session, active_se
# There are two ways to fix this. 1) Add "set-option -g allow-rename off" to your ".tmux.conf".
# 2) Add "export DISABLE_AUTO_TITLE=true" to your shell's run commands file (e.g., ".bashrc").
# Here we automatically do method 1 for the user, unless the user requests otherwise.
list_build.append( "set-option -t " + session_name + " quiet on" )
if support_quiet_option(tmux_version()[1]):
list_build.append( "set-option -t " + session_name + " quiet on" )
renaming = [ "off", "on" ][ARGS.renaming]
list_build.append( "set-option -t " + session_name + " allow-rename " + renaming )
list_build.append( "set-option -t " + session_name + " automatic-rename " + renaming )
Expand Down