Files
linux-provisioning/config/scripts/env.sh
Julian Prester 2ca9a2bdef Fix script file permissions (644 → 755 for executables)
All shell scripts and config files should be executable (755)
for direct invocation. No content changes.
2026-06-07 14:34:51 +10:00

16 lines
577 B
Bash
Executable File

#!/bin/sh
# ===========================================================================
# env — PATH helper
# Sourced from ~/.profile and ~/.bashrc to ensure ~/.local/bin is in PATH.
# Idempotent — won't duplicate PATH entries.
# ===========================================================================
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$HOME/.local/bin":*)
;;
*)
# Prepending path in case a system-installed binary needs overriding
export PATH="$HOME/.local/bin:$PATH"
;;
esac