add bin env

This commit is contained in:
Guillaume Vern
2025-11-24 20:56:11 +01:00
parent bb37adb02a
commit df213f04bb
3 changed files with 18 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
# add binaries to PATH if they aren't added yet
# 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 to be overridden
export PATH="$HOME/.local/bin:$PATH"
;;
esac