dotfiles/dot_config/fish/functions/__ysu__set_default.fish
punkfairie 60cb5740d7
Add .config/fish/conf.d/you_should_use.fish
Add .config/fish/functions/__ysu__check_aliases.fish
Add .config/fish/functions/__ysu__check_git_aliases.fish
Add .config/fish/functions/__ysu__check_hardcore.fish
Add .config/fish/functions/__ysu__flush_buffer.fish
Add .config/fish/functions/__ysu__get_field.fish
Add .config/fish/functions/__ysu__message.fish
Add .config/fish/functions/__ysu__set_default.fish
Add .config/fish/functions/__ysu__set_field.fish
Add .config/fish/functions/__ysu__write_buffer.fish
2024-04-20 11:11:33 -07:00

7 lines
174 B
Fish

function __ysu__set_default \
--no-scope-shadowing \
--argument-names var default
if not set -q "$var"
set --global "$var" "$default"
end
end