This is a collection of my bash prompt settings, aliases, exports, and other related shell scripts.
- Exposes the
XDG Base Directoryspecification variables. - Supports loading
bashshell parts based on host operating system:bash_linux- For Linux platforms.bash_osx- For macOS platforms.
- Displays "information lines" in shell:
gitworking state information.screensession name.virtualenv/pyenvenvironment names.
- Understands various tools and tooling in shell:
- Weekly
VERSIONcheck against GitHub remote.- Also supports on-demand version checking with
_urdabash_version_check now
- Also supports on-demand version checking with
Should work with bash 3.2 or higher.
These are helper functions for urda.bash. You should not rely on them as a public API at this time.
_postpend_path_once- Postpends a value to the
${PATH}variable ONCE, and avoids duplicates.
- Postpends a value to the
_prepend_path_once- Prepends a value to the
${PATH}variable ONCE, and avoids duplicates.
- Prepends a value to the
_source_if_exists- Internal helper function to only
sourcea file if it exists, skips otherwise.
- Internal helper function to only
_urdabash_info- You can invoke this to see a little information printout about the current
urda.bashconfiguration.
- You can invoke this to see a little information printout about the current
_urdabash_version_check- This handles checking for a different
VERSION(which should mean a newurda.bashrelease is out).
- This handles checking for a different
You can run a bare make or make help to display the help screen.
After you clone this repo, you can also run a quick diff that will compare your local bash files against the repo files:
make diffsThis will also run a make version-check.
make testWARNING! This is a DESTRUCTIVE operation and copies bash files from the project into your ${HOME}.
make copyJust run make version-check.