This is a standalone .bashrc for use when you don't want to use something more complex like my https://github.com/crlamke/bash-startup-files.
- Function setprompt() that allows you to select from various prompts you can easily add to the script (a few are provided)
- Disk space function diskspace() that provides formatted disk stats designed to be easy to read
- backup convenience function back() that creates a .bak version of a single file
- System load function sysload() that gives you a one line snapshot of the current system load
- Help function help() that prints out the script's functionality
- Helpful aliases
- Improve back() function to back up sets of files
- Add delete function that creates backup of deleted files, preserving their attributes
- Add dupe function that creates duplicate of a set of files, preserving their attributes
- This script requires only bash v4.2 or newer in a full Linux environment. It's tested on CentOS 7 and Ubuntu 20 LTS.
- This script may partially work on limited environments like cygwin and GitBash (I use it with GitBash), but no guarantees.