changeset 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 9fd2345d35e0
children e4d4cd0d120e
files .shell.d/00.path_manipulation.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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"
+}