.zshrc配置文件语法错误

约书亚·土壤

我的.zshrc文件中某处出现语法错误,但似乎找不到。

我收到此错误消息:

.zshrc:49: bad assignment

这是我的.zshrc文件:

# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh

# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"

# Example aliases
alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"

# Uncomment this to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"

# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13

# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"

# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"

# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"

# Uncomment 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"

# Which plugins would you like to load? (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)
plugins=(git)

source $ZSH/oh-my-zsh.sh

# Customize to your needs...

alias g2sites = "cd /Users/MYNAME/Dropbox/Development" #<< THIS IS THE LINE
alias g2work = "cd /Users/MYNAME/Dropbox/Development/Work"

questino的生产线是上述倒数第二个。我的错误可能来自该行之前的语法,但我找不到它。

看到我错了吗?

艾略特新鲜

从您的别名命令中删除空格。正确的语法是

eeyore% alias g2sites = "cd /Users/MYNAME/Dropbox/Development"
zsh: bad assignment
eeyore% alias g2sites="cd /Users/MYNAME/Dropbox/Development" 
eeyore% 

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Bash配置文件语法错误:文件意外结束

来自分类Dev

配置文件“ /etc/rabbitmq/rabbitmq.config”中的RabbitMQ错误:之前的语法错误:“]”

来自分类Dev

语法检查配置文件

来自分类Dev

LoggedFS配置文件语法

来自分类Dev

语法错误:文件结尾

来自分类Dev

语法错误文件操作

来自分类Dev

如何理解配置文件的语法?

来自分类Dev

从配置文件中读取语法

来自分类Dev

更新用户配置文件时,mysql语法显示错误

来自分类Dev

链接描述文件中的语法错误

来自分类Dev

.bashrc:语法错误:文件意外结束

来自分类Dev

语法错误:意外的文件结尾

来自分类Dev

包含,需要语法错误文件

来自分类Dev

bash:语法错误:文件意外结束

来自分类Dev

Testbench文件中的语法错误

来自分类Dev

Python文件重命名语法错误

来自分类Dev

语法错误:意外的文件结尾

来自分类Dev

语法错误检查文件是否存在

来自分类Dev

.bashrc语法错误:文件意外结束

来自分类Dev

.bashrc:语法错误:文件意外结束

来自分类Dev

语法错误:'意外的文件结尾

来自分类Dev

语法错误,意外的文件结尾。

来自分类Dev

tsconfig 文件中的语法错误?

来自分类Dev

Python Selenium:Firefox配置文件错误

来自分类Dev

休眠错误:无法解析配置文件

来自分类Dev

Logstash配置文件中的错误

来自分类Dev

提供配置文件错误whatchkit

来自分类Dev

iOS-无效的配置文件错误

来自分类Dev

phpmyadmin的配置文件权限错误