I have this line in my
alias cdtmp='cd `mktemp -d /tmp/frantic-XXXXXX`'
It’s a super simple alias that creates a temporary directory and then jumps into it. Here are a few examples of what I use it for:
- Clone a random interesting git repo to experiment with
- Fiddle with Flow:
cdtmp && flow initand I have a working environment to narrow down a bug
- Play with unfamiliar node modules:
cdtmp && yarn add xyz && node
cdtmp is partially a mental trick I use to reduce the barrier for trying new things and experimenting. I no longer need to make a name for my project or decide which folder to create it in. I also don’t have to deal with it later if I consider it not worth paying attention to anymore – the OS will clean it up at some point automatically.
Better way to switch between apps on macOS
Geek's guide to making decent slides
Show OSX notification when long running command finishes and your terminal is not in focus
My favorite shell shortcut
Hello! This text lives here to convince you to subscribe. If you are reading this, consider clicking that subscribe button for more details.
I write about programming, software design and side projects Subscribe