We've all been there: you create a new directory with mkdir and then immediately have to cd into it.
It's a small friction, but it adds up. Here is a simple function to do both at once.
The Solution
Add this function to your .bashrc (or .zshrc):
How to Install
- Open your config file:
- Paste the code block above at the end of the file.
- Save and exit (
Ctrl+O,Enter,Ctrl+X). - Reload your configuration:
Usage
Now you can create deep directory structures and enter them instantly:
You will find yourself inside vaultwarden immediately.