微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.zshrc:8:来自源〜/ .zshrc的错误分配错误

如何解决.zshrc:8:来自源〜/ .zshrc的错误分配错误

我不确定为什么在终端中键入.zshrc:8: bad assignment时会出现source ~/.zshrc错误。我没有更改.zshrc文件中的任何内容。我关闭终端并重新打开,然后弹出此错误。我可以就什么是错误的以及如何解决该问题获得帮助吗?我最近没有添加任何新的.zshrc。我应该怎么做才能解决这个问题?我不确定发生了什么。我所做的就是关闭终端,然后重新打开。

#Flutter
export PATH="$PATH:$HOME/workspace/Flutter/bin"

#Anaconda
export PATH="/anaconda3/bin":$PATH

#Apache Spark
export SPARK_HOME = "/Users/TimWong17/apachespark"
export HADOOP_HOME = "/Users/TimWong17/apachespark"
export PATH=$PATH:$SPARK_HOME/bin
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/Users/TimWong17/.oh-my-zsh"

# Set name of the theme to load --- if set to "random",it will
# load a random theme each time oh-my-zsh is loaded,in which case,# to kNow which specific one was loaded,run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array,this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# disABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# disABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# disABLE_MAGIC_FUNCTIONS=true

# Uncomment the following line to disable colors in ls.
# disABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# disABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much,much faster.
# disABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely,as too many plugins slow down shell startup.
plugins=(
git
zsh-autosuggestions

)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases,overriding those provided by oh-my-zsh libs,# plugins,and themes. Aliases can be placed here,though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases,run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/TimWong17/workspace/Y/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/TimWong17/workspace/Y/google-cloud-sdk/path.zsh.inc'; fi

# The next line enables shell command completion for gcloud.
if [ -f '/Users/TimWong17/workspace/Y/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/TimWong17/workspace/Y/google-cloud-sdk/completion.zsh.inc'; fi

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。