single script to enable
This commit is contained in:
12
rc
Normal file
12
rc
Normal file
@@ -0,0 +1,12 @@
|
||||
# source me to enable tools
|
||||
|
||||
TOOLSPATH=$( readlink -f $( dirname "$BASH_SOURCE" ) )
|
||||
|
||||
PATH=$PATH:"$TOOLSPATH"/bin
|
||||
|
||||
# remove duplicate path
|
||||
PATH=$( echo $PATH | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}' | sed 's,:\+$,,g' )
|
||||
export PATH
|
||||
|
||||
. "$TOOLSPATH"/qcd_function
|
||||
|
||||
Reference in New Issue
Block a user