# shellcheck shell=dash disable=2034
xrc theme

___x_cmd_ohmyposh_use(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m ohmyposh use' help:arg-null:parse
    ___x_cmd_theme_boot check_use --vendor ohmyposh "$@"
}

___x_cmd_ohmyposh_unuse(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m ohmyposh unuse' help:arg:parse
    if ___x_cmd_theme_boot check_unuse --vendor ohmyposh "$@"; then
        ___x_cmd_ohmyposh_load___applyfile0
    fi
}

___x_cmd_ohmyposh_try(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m ohmyposh try' help:arg-null:parse
    local name="$1"
    ___x_cmd_theme_boot check_and_apply_vendor default ohmyposh try "$name"
}

___x_cmd_ohmyposh_untry(){
    local X_help_cmd; X_help_cmd='___x_cmd help -m ohmyposh untry' help:arg:parse
    if ___x_cmd_theme_boot check_untry ohmyposh; then
        ___x_cmd_ohmyposh_load___applyfile0
        ohmyposh:info "Untry the prompt theme successfully."
        ohmyposh:info "To apply the configuration, please reopen a new shell environment."
    fi
}
