Bash Command "mkcd"

Pixelbog Pixi Pixelbog at outlook.com
Wed Feb 23 14:39:28 UTC 2022


Dear Ubuntu-Team,

I have a question:
Is it possible to add the command ​mkcd​?
It stands for make & change directory and I think it will be super usefull.

It happened already way too often that I typed "mk foo && cd foo" and
with mkcd it will save 8 keystrokes for the example "foo".

I wrote a little script that gets every directory on my computer and found out that the average
size of a directory 7.879865977982097 is. That means I would save on average 12-13 keystorkes
for creating a dir and changing into it.

Ofcourse I know you can write a function in .bashrc, but isn't it the same.

Well I have literally no idea how hard it is to do something like this, so if it is hard to change
something like this, forget it. But if it easy, please consider it :)

Sorry if this e-mail annoyed you :(

Best regards,
Me :)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20220223/50ee4d5e/attachment.html>


More information about the ubuntu-devel mailing list