added .bash_profile and .bash_samenv

This commit is contained in:
2025-04-07 17:26:53 +02:00
committed by l_samenv
parent 570923497d
commit 5ec713f1b1
2 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
# helper for adding to PATH without duplicates
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
pathadd ~/bin
pathadd ~/.local/bin
pathadd ~/frappy/bin
. ~/.bash_samenv