(is_global)
Turn off saving commands to Bashhub. Applies for this current session.
Turn off saving commands to Bashhub. Applies for this current session.
Turn off saving commands to Bashhub . Applies for this current session .
def off(is_global):
    """Turn off saving commands to Bashhub. Applies for this current session."""
    if is_global:
        write_to_config_file('save_commands', 'False')
    else:
        f = io.open(BH_HOME + '/script.bh', 'w+', encoding='utf-8')
        print(text("export BH_SAVE_COMMANDS='False'"), file=f)
def off ( is_global ) : if is_global : write_to_config_file ( 'save_commands' , 'False' ) else : f = io . open ( BH_HOME + '/script.bh' , 'w+' , encoding = 'utf-8' ) print ( text ( "export BH_SAVE_COMMANDS='False'" ) , file = f )