Fix mkdcd

work
mat ess 2022-11-29 22:20:03 -05:00
parent 83ae1044f3
commit cfe166f68a
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
mkdcd = { mkdcd = {
argumentNames = [ "target" ]; argumentNames = [ "target" ];
body = '' body = ''
if test -z "$target"
echo "mkdcd requires an argument" 1>&2
return 1
end
mkdir -p $target mkdir -p $target
cd $target cd $target
''; '';