1a7a850efaff3d95e6ec6c7fcf92280494bcca09
Replace the ~30-line get_script_dir() copy (duplicated a third time from bashrc/bash_profile) with a one-liner. This script is always executed directly, never sourced from another file, so BASH_SOURCE[0] reliably points to itself — the extra logic in get_script_dir() for the sourced-from-elsewhere case doesn't apply here.
config-bash
My configuration for the bash shell
Languages
Shell
100%