function _pure_set_default \
    --description 'Set default value for configuration variable' \
    --argument-names var default

    if not set -q --universal $var
        set --universal $var $default
    end
end

function _pure_set_default \
    --description 'Set default value for configuration variable' \
    --argument-names var default

    if not set -q --universal $var; or test -z $$var; and not set -q --global $var
        set --universal $var $default
    end
end

Fix empty defaults for base colors
Fix empty defaults for base colors

rafaelrinaldi/pure