All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.setenv.1.0.1.source-code.setenv.bash Maven / Gradle / Ivy

# setup https://github.com/mlhartme/setenv

if [ -z ${SETENV_BASE} ] ; then
    export SETENV_BASE=/tmp/setenv-$$
    export SETENV_OLD_PROMPT_COMMAND=$PROMPT_COMMAND

    doSetenv() {
        eval "$SETENV_OLD_PROMPT_COMMAND"
        for file in ${SETENV_BASE}-*; do
            if [ -f "${file}" ] ; then
                . ${file}
                rm ${file}
            fi
        done
    }
    PROMPT_COMMAND=doSetenv
# else
#   already initialized, nothing to do
fi




© 2015 - 2025 Weber Informatics LLC | Privacy Policy