diff .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
line wrap: on
line diff
--- a/.shell.d/00.path_manipulation.sh
+++ b/.shell.d/00.path_manipulation.sh
@@ -33,3 +33,7 @@ function remove_element_from_var() {
     echo $1 not in $varname
   fi
 }
+
+function append_path_element() {
+    export PATH="${PATH}:$1"
+}