← Back to context Comment by ladybanshee 1 month ago Could you explain the purpose of mkcd? 8 comments ladybanshee Reply antomal 1 month ago It’s a shortcutIts purpose is to combine mkdir -p and cd into a single atomic-like action. Instead of typing: mkdir -p my_project && cd my_projectYou simply run: mkcd my_projectIt's designed to reduce friction during development, especially when you're frequently creating new nested directory structures. az09mugen 1 month ago Not the author, but my first guess is to create a folder and cd into it with just one command instead of 2 with the said argument, isn't it ? antomal 1 month ago Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it. az09mugen 1 month ago I love the concept, very good yet simple idea ! I'll steal it for my aliases. 1 reply → danabowler 1 month ago Is it not possible to realize it with alias? 1 reply →
antomal 1 month ago It’s a shortcutIts purpose is to combine mkdir -p and cd into a single atomic-like action. Instead of typing: mkdir -p my_project && cd my_projectYou simply run: mkcd my_projectIt's designed to reduce friction during development, especially when you're frequently creating new nested directory structures.
az09mugen 1 month ago Not the author, but my first guess is to create a folder and cd into it with just one command instead of 2 with the said argument, isn't it ? antomal 1 month ago Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it. az09mugen 1 month ago I love the concept, very good yet simple idea ! I'll steal it for my aliases. 1 reply → danabowler 1 month ago Is it not possible to realize it with alias? 1 reply →
antomal 1 month ago Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it. az09mugen 1 month ago I love the concept, very good yet simple idea ! I'll steal it for my aliases. 1 reply → danabowler 1 month ago Is it not possible to realize it with alias? 1 reply →
az09mugen 1 month ago I love the concept, very good yet simple idea ! I'll steal it for my aliases. 1 reply →
It’s a shortcut
Its purpose is to combine mkdir -p and cd into a single atomic-like action. Instead of typing: mkdir -p my_project && cd my_project
You simply run: mkcd my_project
It's designed to reduce friction during development, especially when you're frequently creating new nested directory structures.
Not the author, but my first guess is to create a folder and cd into it with just one command instead of 2 with the said argument, isn't it ?
Exactly. It's a small quality-of-life feature to avoid the repetitive mkdir && cd sequence. In GRSH, it also ensures the directory is created with the necessary permissions before the shell attempts to switch into it.
I love the concept, very good yet simple idea ! I'll steal it for my aliases.
1 reply →
Is it not possible to realize it with alias?
1 reply →