Live data from Hacker News

Linux Terminal Goods

diego-pacheco.blogspot.com

61–65 of 65 posts

Re: Linux Terminal Goods

#61
post #30
post #9

Earlier quoted context omitted.

Generally if you're trying to do something that feels like a "program" in shell script, rather than loosely gluing existing tools together, the threshold for moving it into Perl or Python should be low. Even things like trying to get the quoting right for lists of files some of which may have spaces in their names is fiddly enough to drive people to writing a "proper" program. (or was this comment intended for https:…

The moment I have to use arrays in bash, I open up a python interpreter. Syntax makes far more sense than in bash.

I used to drop into python for ad-hoc work as soon as I needed even for/if or any arithmetic. Now that I actually manage to remember how to use for-loops when I need them and I picked up awk,I haven't needed to since.

For a maintainable script pythons great of course.

Re: Linux Terminal Goods

#63
post #28

I spend loads of time in a shell. One day I'll push my full dotfiles publicly, but until then here's a few snippets I've found super handy. I'd advise against using them verbatim but there's a few things in there that took some time to figure out. Beware they can be somewhat buggy / break things though. Highlights include: - Bind C-c/C-v to Copy/Paste, bind C-g to sigterm (Note: Breaks docker interactive unless you m…

I agree with powerlevel9k. i still have marginal enjoyment from the fiddly things thought and i've switched to powerlevel10k [1]. Its noticeably faster and the default settings are minimalist enough for me. does not fix the fact that you need to install fonts which I can't get working on some terminals (urxvt). [1] https://github.com/romkatv/powerlevel10k

You can use powerlevel10k with the default system font. It works fine with urxvt without any twiddling.

Re: Linux Terminal Goods

#64
post #14

Earlier quoted context omitted.

Its simplicity is an important part of the offering. Bash is perfect when you need predictable executions. When you use Bash, you benefit from an entire ecosystem that also uses it. That same ecosystem is not motivated to drastically change the shell, and therefore it remains stable and predictable. Bash typically isn't like Python or JavaScript, where certain features are introduced at a particular version and you h…

I don't disagree with your points but I think your following comment is a little misleading: > Bash typically isn't like Python or JavaScript, where certain features are introduced at a particular version and you have to constantly check for them, or not use them outright, or maintain which binary you have installed at all times. One Bash binary typically contains the same feature set as another binary. While you're…

That's an oversight on my part, excellent point. Thanks for pointing it out.
Post reply on HN