Skip to content

Instantly share code, notes, and snippets.

@bukanspot
Created April 23, 2023 11:34
Show Gist options
  • Save bukanspot/ff5ec10132ed1eca968b93dc322fddd2 to your computer and use it in GitHub Desktop.
Save bukanspot/ff5ec10132ed1eca968b93dc322fddd2 to your computer and use it in GitHub Desktop.
Create a new directory and jump into it immediately
md () { mkdir "$1" && cd "$1" ; }
@bukanspot
Copy link
Author

bukanspot commented Apr 23, 2023

Add this function to your ~/.bashrc and reopen your terminal, and then you can create new directory and jump into it immediately with

md directory_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment