dotfiles/fish/functions/_pure_set_default.fish

9 lines
215 B
Fish

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