简体   繁体   中英

.zshrc:3: parse error near `>' when i open terminal on mac

i have error when i open my macOS Monterey 12.3.1 terminal after installing flutter like this :

 Last login: Sat May 14 10:49:04 on console
/Users/malela/.zshrc:3: parse error near `>'
malela@galihs-MacBook-Pro ~ % 

and here my .zshrc file

export PATH="$PATH:$HOME/FlutterDev/flutter/bin"

 >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/malela/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/Users/malela/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/Users/malela/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/Users/malela/opt/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

export
PATH=/Users/malela/opt/anaconda3/bin:/Users/malela/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/bin:/opt/homebrew/bin
            

after that i can't use brew syntaks like this

Last login: Sat May 14 10:50:20 on ttys000
/Users/malela/.zshrc:3: parse error near `>'
malela@galihs-MacBook-Pro ~ % brew
zsh: command not found: brew
malela@galihs-MacBook-Pro ~ % '

The question is how to fix that? Thank you

Change

>>> conda initialize >>>

To

# >>> conda initialize >>>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM