HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/conda_pack/scripts/posix/deactivate
_conda_pack_deactivate () {
    # If there's an active environment
    if [ -n "$CONDA_PREFIX" ]; then
        # First run the deactivate scripts
        local _script_dir="${CONDA_PREFIX}/etc/conda/deactivate.d"
        if [ -d "$_script_dir" ] && [ -n "$(ls -A "$_script_dir")" ]; then
            local _path
            for _path in "$_script_dir"/*.sh; do
                . "$_path"
            done
        fi

        # Remove env/bin from path
        local IFS=':'
        local _target="$CONDA_PREFIX/bin"
        local _newpath
        local _path

        for _path in $PATH; do
            if [ "$_path" != "$_target" ] ; then
                _newpath=${_newpath:+$_newpath:}$_path
            fi
        done

        PATH="$_newpath"
        unset CONDA_PREFIX
        PS1="$_CONDA_PACK_OLD_PS1"
        unset _CONDA_PACK_OLD_PS1
    fi
}

_conda_pack_deactivate