Comment by yipbub
1 year ago
I have mkcd exactly ( I wonder how many of us do, it's so obvious)
I have almost the same, but differently named with scratch(day), copy(xc), markdown quote(blockquote), murder, waitfor, tryna, etc.
I used to use telegram-send with a custom notification sounnd a lot for notifications from long-running scripts if I walked away from the laptop.
I used to have one called timespeak that would speak the time to me every hour or half hour.
I have go_clone that clones a repo into GOPATH which I use for organising even non-go projects long after putting go projects in GOPATH stopped being needed.
I liked writing one-offs, and I don't think it's premature optimization because I kept getting faster at it.
Obviously that script is more convenient, but if you’re on a system where you don’t have it, you can do the following instead:
>I have mkcd exactly ( I wonder how many of us do, it's so obvious)
Mine is called "md" and it has "-p" on the mkdir. "mkdir -p $1 && cd $1"
I too have a `mkcd` in my .zshrc, but I implemented it slightly differently:
Doesn’t the built in `take` do exactly what `mkcd` does? Or is `take` a zsh/macos specific thing?
Edit: looks like it’s a zsh thing
it's an .oh-my-zsh thing (~/.oh-my-zsh/lib/functions.zsh) but thanks, I didn't know about it.
One more from me: