Live data from Hacker News

Show HN: Useful scripts and environment setup for coding in VPS

github.com

1–10 of 31 posts

Re: Show HN: Useful scripts and environment setup for coding in VPS

#4
> # uncomment for a colored prompt, if the terminal has the capability; turned off by default to not distract the user: the focus in a terminal window should be on the output of commands, not on the prompt

:eyeroll:

What a horrible attitude. The point of coloring is precisely to help users focus on the output that matters, rather than forcing them to parse and reparse a chunk of stuff they don't care about. If the prompt is colored, my brain can filter it out much faster than if it isn't.

By all means disable color by default for backward-compatibility purposes or to err on the safe side, but don't lecture people with rubbish arguments...

Re: Show HN: Useful scripts and environment setup for coding in VPS

#5
The install scripts lack `set -e` (or `set -xeuo pipefail`, which is what I've memorized), so if a command fails, the scripts just keep on steamrolling forward.

Then again, these scripts are clearly tailored for OP, since they contain their name and email, so it's... not like these would be usable as-is for anyone else.

(Also, why is this published on Npm?)

Re: Show HN: Useful scripts and environment setup for coding in VPS

#6
post #4

> # uncomment for a colored prompt, if the terminal has the capability; turned off by default to not distract the user: the focus in a terminal window should be on the output of commands, not on the prompt :eyeroll: What a horrible attitude. The point of coloring is precisely to help users focus on the output that matters , rather than forcing them to parse and reparse a chunk of stuff they don't care about. If the p…

Ok, I think I copied that from somewhere... Pretty sure it's not my comment. But still... Lecturing people with rubbish arguments and a horrible attitude sounds like what you're doing.

Big world out there. You can have people who like colors and those who don't. Neither have to be pretending they're all that and hate the other. :) Friends?

Please submit a PR with a better comment if you like. I honestly didn't think of that until now, but I think comments are important. Thanks for pointing out really. :)

Re: Show HN: Useful scripts and environment setup for coding in VPS

#7
post #4

> # uncomment for a colored prompt, if the terminal has the capability; turned off by default to not distract the user: the focus in a terminal window should be on the output of commands, not on the prompt :eyeroll: What a horrible attitude. The point of coloring is precisely to help users focus on the output that matters , rather than forcing them to parse and reparse a chunk of stuff they don't care about. If the p…

I mean, it depends on the person and the color scheme.

I appreciate being able to turn off very colorful output if possible, as it does tend to distract me sometimes. The color schemes I pick/design for myself tend to be muted, while a lot of the tools out there in the world are way too colorful for me (and full of distracting emojis).

Re: Show HN: Useful scripts and environment setup for coding in VPS

#8
post #5

The install scripts lack `set -e` (or `set -xeuo pipefail`, which is what I've memorized), so if a command fails, the scripts just keep on steamrolling forward. Then again, these scripts are clearly tailored for OP, since they contain their name and email, so it's... not like these would be usable as-is for anyone else. (Also, why is this published on Npm?)

Yeah I should fix that email stuff somehow. But it's just a good place to keep the GitHub noreply emails. And set -e with option to continue manually somehow good idea.

It's surprising how many people have used these, so they are for others... Improving them makes sense. If your wanna submit some changes and ideas please do :)

I would really appreciate it, and whoever gets them from npm might too.

I think I pushed to npm because I mostly do node and I guess I figured it's an easy backup and way to distribute.:)

Re: Show HN: Useful scripts and environment setup for coding in VPS

#10

OP might want to look up NixOS, which would make this many times easier. Or consider setting up a pre-configured image.

Cool, thanks for the tip about NixOS! I think I like the flexibility of running scripts and picking and choosing... But a Dockerfile in the repo might be a cool way to tie everything together. Submit? :)
Post reply on HN