3 ms·
I have a shell function "md" that does a "mkdir -p" and then cds into it. In fish: function md if test -z "$argv" echo "md: Must supply an a
by linsomniac 1y ago
I have a shell function "md" that does a "mkdir -p" and then cds into it. In fish:
function md
if test -z "$argv"
echo "md: Must supply an argument: The directory to create+cd into"
return 1
end
mkdir -p "$argv"
cd "$argv"
end