Bash - howinfo/howinfo GitHub Wiki
Modernish – A library for writing programs for POSIX-based shells and utilities
set -e
Getting decent error reports in Bash when you're using - https://utcc.utoronto.ca/~cks/space/blog/programming/BashGoodSetEReports
- https://news.ycombinator.com/item?id=44666984
Moving files
Could also work with other CLI shells.
mv '/some/long/path/to/a/file/you/want/to/rename/'{old,new}
This will expand into both file paths, so you don't need to type the long path a second time. Like this:
mv '/some/long/path/to/a/file/you/want/to/rename/old' '/some/long/path/to/a/file/you/want/to/rename/new'
This will work with any command, of course.