Techniques I use to create a great user experience for shell scripts
1–10 of 281 posts
Re: Techniques I use to create a great user experience for shell scripts
#2Re: Techniques I use to create a great user experience for shell scripts
#3Re: Techniques I use to create a great user experience for shell scripts
#4I'd add that if you're going to use color, then you should do the appropriate checks for determining if STDOUT isatty
Re: Techniques I use to create a great user experience for shell scripts
#5Re: Techniques I use to create a great user experience for shell scripts
#6I don’t remember where I got it, but I have a simple implementation of a command-line spinner that I use keyboard shortcuts to add to most scripts. Has been a huge quality of life improvement but I wish I could just as seamlessly drop in a progress bar (of course, knowing how far along you are is more complex than knowing you’re still chugging along).
Re: Techniques I use to create a great user experience for shell scripts
#7Re: Techniques I use to create a great user experience for shell scripts
#8 rm -rf ${VAR}/*
That's typically a great experience for shell scripts!Re: Techniques I use to create a great user experience for shell scripts
#9Definitely don't check that a variable is non-empty before running rm -rf ${VAR}/* That's typically a great experience for shell scripts!
https://github.com/ValveSoftware/steam-for-linux/issues/3671
Re: Techniques I use to create a great user experience for shell scripts
#10Only one that’s shell specific is 4. The rest can be applied any code written. Good work!