add: friendly path-export & open startfiles for bash
This commit is contained in:
6
bash/friendly_path-export.sh
Executable file
6
bash/friendly_path-export.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#/!bin/bash
|
||||
|
||||
# exports a path only, if $PATH does not already contains the path.
|
||||
|
||||
NEWPATH="$1"
|
||||
echo ":$PATH:" | grep -q ":$NEWPATH:" || export PATH="$PATH:$NEWPATH"
|
||||
Reference in New Issue
Block a user