cd into a fresh, one-time temporary directory, in Fish
npm install fish-tmpdirFish function that creates a temporary directory, cds into it, and wipes it out when the shell exits.
Based on the Bash version by @mafintosh.
tmpdir brings you to a fresh directory.
tmpdir [-s | --spawn] opens a subshell instead of utilizing the current one.

or simply put the script to your ~/.config/fish/functions/ or source it elsewise.
MIT