Re:Ask HN: Can I see your scripts?
by junon on Monday August 15, 2022 @08:41AM
(#32468922)
Biggest timesaving script I've ever included in my arsenal.
[ Parent
| on HN ]
I have this one aliased to mkcd, but yours saves an extra character. I like it!
add in exec functionality and you've got xkcd!
I call it "mcd"(for make and cd) on my windows cmd and bash shells
Re:Ask HN: Can I see your scripts?
by zeppelin101 on Monday August 15, 2022 @10:07AM
(#32469858)
Zsh has the "take" command which accomplishes this.
Correction: Zsh does not have the take command. The Oh My Zsh add-on has the take command.
(Lots of us don't use OMZ)
Re:Ask HN: Can I see your scripts?
by zeppelin101 on Monday August 15, 2022 @06:06PM
(#32476076)
Very interesting - didn't know that. I always install OMZ after zsh.
Didn't know that! thank you
Re:Ask HN: Can I see your scripts?
by aslushnikov on Monday August 15, 2022 @10:42AM
(#32470304)
I use `mkdir -p DIRECTORY_NAME && cd $_` in bash which is not as concise but still DRY.
This is the sort of DRY that is more dogmatic than helpful, IMO.