bash-it/scripts
terminalforlife 24b2f2d2e9 Optimized statement with REGEX by using `case`
REGEX is a great feature of BASH, but in this case it was energy
needlessly spent. A `case` statement suffices. Bring in REGEX when
you're going to make good use of it, otherwise it's just going to bog
down your code.

I also wanted to strip the ` || exit 1` on the last line, but I wasn't
sure if this file is meant to be sourced or not; if not, then exiting
like that is redundant because it will already exit with whichever
status the last command provides, unless `popd` specifically offers
unhelpful or no exit statuses.
2020-12-19 01:44:52 +00:00
..
reloader.bash Optimized statement with REGEX by using `case` 2020-12-19 01:44:52 +00:00