#!/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