1
0
Fork
You've already forked urda.bash
0
No description
  • Shell 83.1%
  • Makefile 16.9%
Find a file
2026年03月25日 03:31:43 -07:00
.github Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
bash_aliases Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
bash_exports Version 1.2.1 release 2026年03月25日 03:25:42 -07:00
bash_history urda.bash gets a fresh coat of paint in 2025 2025年11月25日 02:08:07 -08:00
bash_linux Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
bash_osx Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
bash_profile Update HEADERS 2024年12月18日 22:45:08 -08:00
bash_secrets urda.bash gets a fresh coat of paint in 2025 2025年11月25日 02:08:07 -08:00
bashrc Version 1.2.2 release 2026年03月25日 03:31:43 -07:00
CHANGELOG.md Version 1.2.2 release 2026年03月25日 03:31:43 -07:00
LICENSE urda.bash gets a fresh coat of paint in 2025 2025年11月25日 02:08:07 -08:00
Makefile Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
README.md Version 1.2.0 release 2026年03月25日 03:15:15 -07:00
VERSION Version 1.2.2 release 2026年03月25日 03:31:43 -07:00

Urda's Bash Files

This is a collection of my bash prompt settings, aliases, exports, and other related shell scripts.

urda.bash Features

  • Exposes the XDG Base Directory specification variables.
  • Supports loading bash shell parts based on host operating system:
    • bash_linux - For Linux platforms.
    • bash_osx - For macOS platforms.
  • Displays "information lines" in shell:
    • git working state information.
    • screen session name.
  • Understands various tools and tooling in shell:
  • Weekly VERSION check against GitHub remote (non-blocking).
    • Also supports on-demand version checking with _urdabash_version_check now

Should work with bash 3.2 or higher.

urda.bash Special Functions

These are helper functions for urda.bash. You should not rely on them as a public API at this time.

  • _prepend_path_once
    • Prepends a value to the ${PATH} variable ONCE, and avoids duplicates.
  • _source_if_exists
    • Internal helper function to only source a file if it exists, skips otherwise.
  • _urdabash_info
    • You can invoke this to see a little information printout about the current urda.bash configuration.
  • _urdabash_version_check
    • This handles checking for a different VERSION (which should mean a new urda.bash release is out).

Working with urda.bash project files

Get Makefile help

You can run a bare make or make help to display the help screen.

Comparing to your local bash

After you clone this repo, you can also run a quick diff that will compare your local bash files against the repo files:

make diffs

Running tests

This will also run a make version-check.

make test

Copying files to your ${HOME}

WARNING! This is a DESTRUCTIVE operation and copies bash files from the project into your ${HOME}.

make copy

Project version check

Just run make version-check.