4 ms·
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(bl
by yipbub 1y 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.
- justusthane 1y agoObviously that script is more convenient, but if you’re on a system where you don’t have it, you can do the following instead: mkdir /some/dir cd !$ (or cd <alt+.>)
- taejavu 1y agoDoesn’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
- codesnik 1y agoit's an .oh-my-zsh thing (~/.oh-my-zsh/lib/functions.zsh) but thanks, I didn't know about it.
- linsomniac 1y ago>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"
- mttpgn 1y agoI too have a `mkcd` in my .zshrc, but I implemented it slightly differently: function mkcd { newdir=$1 mkdir -p $newdir cd $newdir }
- aib 1y agoOne more from me: mkcd() { mkdir -p -- "$1" && cd -- "$1" }