Fish function that creates a temporary directory, cd
s 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