Bricked
- 2 Posts
- 5 Comments
There are many modern alternatives to common Unix commands, often written in rust, or provided in Nushell, that showcase that. Here are some common themes I like:
Good defaults: You shouldn’t have to memorize
tar -xzvfjust to extract a tar file; The thing you’re most likely to want to do should be the default. But other use cases should still be achievable through the use of flags. Make simple thing easy and difficult things possible.Subcommands: It helps separate and discover the different functions of a CLI. Paired with a help subcommand, you can quickly look up information for the subcommand you’re actually interested in.
Domain specific languages: Many problems already have a solution in the form of a DSL, such as Regex or SQL. My favourite example for this is
httpie, which lets you specify the type, body and parameters of an HTTP request without touching any flags.I also much prefer long flags over short ones, because they are self-documenting.
Bricked@feddit.orgto
Lemmy Shitpost@lemmy.world•fuck it, just paste your clipboard in the comments
0·1 month ago584895
In case you need my 2FA code
I freed my entire disk by removing the French language pack


For professional email I recommend firstname.lastname@domain because it’s very common and lets people almost uniquely identify you from your email address alone. You could also register a domain such as lastname.com such that you can use firstname@lastname.com. Just make sure to use a reputable email host to make sure that your emails don’t end up in spam.