added .bash_profile and .bash_samenv
This commit is contained in:
12
to_system/home/l_samenv/.bash_profile
Normal file
12
to_system/home/l_samenv/.bash_profile
Normal 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
|
||||
Reference in New Issue
Block a user