All shell scripts and config files should be executable (755) for direct invocation. No content changes.
16 lines
577 B
Bash
Executable File
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
|