2017-05-05 135 views
-1

每次启动终端时,我都会收到此语法错误。启动时出现终端Bash错误

-bash: /Users/Jake/.bash_profile: line 2: syntax error near unexpected token `then' 
-bash: /Users/Jake/.bash_profile: line 2: `alias mysql='/Applications/XAMPP/xamppfiles/bin/mysql'if which rbenv > 
/dev/null; then eval "$(rbenv init -)"; fi' 

我该如何解决这个问题?

回答

1

如果你不想要别名,只需编辑你的/Users/Jake/.bash_profile并在开始时删除或注释该行#。如果你确实需要这个别名,请发布你的.bash_profile,这样我们可以看看错误是什么。

希望它有帮助

相关问题