blob: 63b0e88bf0d84f3b5b2edc0fa38d4af606426727 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#
# Set default
#
function __sf_util_set_default -a var -d "Set the default value for a global variable"
if not set -q $var
# Multiple arguments will become a list
set -g $var $argv[2..-1]
end
end
|