# This file has been automatically generated by env-tool. # You probably do not want to edit this by hand. # Helper function extend_env() { case "${!1}" in "$2") ;; *:"$2") ;; "$2":*) ;; *:"$2":*) ;; *) if $4; then echo "env-tool: extending $1 with $2" fi if $3; then export $1="${!1}:$2" else export $1="$2:${!1}" fi;; esac } extend_env_list () { for ext in $2 do extend_env $1 $ext $3 $4 done } alias foo=bar echo "env-tool: aliasing foo with bar" alias foo=baz echo "env-tool: aliasing foo with baz" alias foo=/testing/qux echo "env-tool: aliasing foo with /testing/qux" unset -f extend_env unset -f extend_env_list # Thank you for using env-tool!