fish-tmpdir

cd into a fresh, one-time temporary directory, in Fish

Usage no npm install needed!

<script type="module">
  import fishTmpdir from 'https://cdn.skypack.dev/fish-tmpdir';
</script>

README

fish-tmpdir

Fish function that creates a temporary directory, cds into it, and wipes it out when the shell exits.

Based on the Bash version by @mafintosh.

CLI

tmpdir brings you to a fresh directory.

tmpdir [-s | --spawn] opens a subshell instead of utilizing the current one.

Install

npm

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

License

MIT