(quiet: bool = False)
Enable tab autocompletion in your shell profile.
Enable tab autocompletion in your shell profile.
Enable tab autocompletion in your shell profile .
def install_autocomplete(quiet: bool = False) -> None:
    """
    Enable tab autocompletion in your shell profile.
    """
    path, text = _validate_shell()

    if not path.exists():
        path.touch(mode=0o644)

    if not file_has_text(path, text):
        append_text_to_file(path, text)

    if not quiet:
        echo_success(
            f"Tab autocompletion for Bento has been added to {path}. Please run `source {path}`."
        )
def install_autocomplete ( quiet : bool = False ) -> None : path , text = _validate_shell ( ) if not path . exists ( ) : path . touch ( mode = 0o644 ) if not file_has_text ( path , text ) : append_text_to_file ( path , text ) if not quiet : echo_success ( f"Tab autocompletion for Bento has been added to {path}. Please run `source {path}`." )