logoalt Hacker News

zahlmanlast Thursday at 8:17 AM3 repliesview on HN

Not a fan of the LLM-flavoured headings, and the tips seem like a real mixed bag (and it'd be nice to give credit specifically to the readline library where appropriate as opposed to the shell), but there are definitely a few things in here I'll have to play around with.

One thing I dislike about brace expansions is that they don't play nicely with tab completion. I'd rather have easy ways to e.g. duplicate the last token (including escaped/quoted spaces), and delete a filename suffix. And, while I'm on that topic, expand variables and `~` immediately (instead of after pressing enter).


Replies

ta8903last Thursday at 9:25 AM

Speaking of readline, I recently found out PowerShell has a readline mode (https://learn.microsoft.com/en-us/powershell/module/psreadli...) and it works great.

As someone who works mostly in WSL and has to use PS occasionally, it really reduces the overhead of the context switch.

croemerlast Thursday at 6:28 PM

Not just the heading is LLM-flavoured. So is the writing, e.g. "The shell is a toolbox, not an obstacle course."

show 1 reply
umanwizardlast Thursday at 2:55 PM

Readline is close enough to being part of bash that it’s not really inaccurate to call these all shell features imo.

show 1 reply