Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"which conda" command returns something not expected

When I type which conda in terminal it returns somewhat unexpected result as below.

conda () {
        if [ "$#" -ge 1 ]
        then
                local cmd="$1" 
                shift
        else
                local cmd="" 
        fi
        case "$cmd" in
                (activate) _conda_activate "$@" ;;
                (deactivate) _conda_deactivate "$@" ;;
                (install | update | uninstall | remove) $_CONDA_EXE "$cmd" "$@"
                        _conda_reactivate ;;
                (*) $_CONDA_EXE "$cmd" "$@" ;;
        esac
}

I'm using pyenv in MAC.

I looked ~/.zshrc but found nothing special.

I expected which version I'm using to be printed, but I am getting some messages I cannot understand

like image 636
임정섭 Avatar asked May 21 '19 04:05

임정섭


1 Answers

Executing which -p conda in your zsh, it will return the path instead of the script. For more information, read this answer.

like image 178
Long Avatar answered Oct 10 '22 04:10

Long