comparison .shell.d/00.path_manipulation.sh @ 484:c85072e620a8

append_path_element: new function that I've had for a while
author Augie Fackler <raf@durin42.com>
date Tue, 30 Jun 2020 10:36:15 -0400
parents 7dfb7799567f
children 10811c923fc0
comparison
equal deleted inserted replaced
483:9fd2345d35e0 484:c85072e620a8
31 unset $varname 31 unset $varname
32 else 32 else
33 echo $1 not in $varname 33 echo $1 not in $varname
34 fi 34 fi
35 } 35 }
36
37 function append_path_element() {
38 export PATH="${PATH}:$1"
39 }