I've probably tooted about this before, but I don't know why this isn't standard.
It's just so obvious, at least to me. ;)
~ $ type mcd
mcd is a function
mcd ()
{
[[ -n $1 ]] && mkdir "$1" && cd "$1"
}
I've probably tooted about this before, but I don't know why this isn't standard.
It's just so obvious, at least to me. ;)
~ $ type mcd
mcd is a function
mcd ()
{
[[ -n $1 ]] && mkdir "$1" && cd "$1"
}
@rl_dane I also have something like this called "mkdircd" 
More gems I use a lot:
- wping()='curl -Lv "$1"' > /dev/null'
- dctl='systemctl'
- dctlu='systemctl --user' (yes I run some of my own background services + regular miantenance on systemd, bring in the pitchforks
)
Ooo, I like wping!
about curl, have you seen
https://hurl.dev ?
Looks interesting, although I must admit I'm kind of a dinosaur when it comes to web stuff, and didn't quite understand it.
That's why you'll see me doing silly stuff like web scraping using sed. XD