ある日ターミナルにログインした際
Last login: Sat Oct 17 18:09:57 on console
/Users/username/.zshrc:25: parse error near `}'
mypc%
な事をいわれた。
そういえば homebrew から 5.1.1あたりにzshを昨日アップデートしたんだが、地雷ふんだんだろうか。
brew uninstall zsh
として、最新の5.1.1はアンインストールして、旧バージョンのzshは
% brew info zsh
zsh: stable 5.1.1
UNIX shell (command interpreter)
http://www.zsh.org/
/Users/username/brew/Cellar/zsh/5.0.0 (957 files, 9.1M)
/Users/username/brew/Cellar/zsh/5.0.2 (1052 files, 9.3M)
Built from source
/Users/username/brew/Cellar/zsh/5.0.6 (1084 files, 11M)
Built from source
/Users/username/brew/Cellar/zsh/5.0.7 (1084 files, 11M) *
Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/zsh.rb
==> Dependencies
Required: gdbm ✔, pcre ✔
==> Options
--without-etcdir
Disable the reading of Zsh rc files in /etc
==> Caveats
Add the following to your zshrc to access the online help:
unalias run-help
autoload run-help
HELPDIR=/Users/username/brew/share/zsh/help
ひとまず5.0.7として残っていそうなので、
brew switch zsh 5.0.7
として戻したところ冒頭のメッセージは消えた。
なんだったんでしょね