GSWL-ecosystem icon indicating copy to clipboard operation
GSWL-ecosystem copied to clipboard

Clean up bash idioms, use modern interpolation style

Open obscurerichard opened this issue 1 year ago • 1 comments

This PR seeks to clean up the bash idioms used in the alias script. It offers some additional help for debugging, it is possible to run this as DEBUG=true bash ./alias to get a line by line rendition of what it is trying to do, and if there are any errors.

It introduces some comments to the alias script that explain its usage, and links back to the documentation.

I have a mind to also make this shellcheck clean but wanted some feedback about whether PRs are welcome in this project before doing further work.

This script should be robust in the face of adding additional error checking, such as the Bash unofficial strict mode.

obscurerichard avatar Oct 01 '23 23:10 obscurerichard

Oh, and please also feel free to add a line here.

rolfschr avatar Oct 03 '23 05:10 rolfschr