Remix.run Logo
linsomniac 3 days 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