oh-my-fish/pkg/omf/util/omf_util_mkdir.fish
2015-08-27 00:20:13 +09:00

10 lines
219 B
Fish

function omf_util_mkdir -a name
set -l name "$argv[1]"
if test -d "$OMF_CUSTOM"
set name "$OMF_CUSTOM/$name"
else if test -d "$OMF_PATH"
set name "$OMF_PATH/$name"
end
mkdir -p "$name"
echo $name
end