LoginSignup
4
2

More than 5 years have passed since last update.

zshを5.1.1にしたらつまづいた

Posted at

小ネタですが

ちょっと前にもzsh5.1.1にして、起動してみるとエラーとか出てしまったので、今回はちょっと調べました。といってもすごい簡単な事でした。

Last login: Sat Nov 14 14:58:47 on ttys009
/Users/kakikubo/.zshrc:25: parse error near `}'
kair%

ターミナル起動時に出力されたメッセージは上記でした。
該当行は以下です。

function history-all {history -E l } # 全履歴の一覧を出力する関数定義

で、解決したのが以下です

function history-all { history -E l } # 全履歴の一覧を出力する関数定義

{と}の横はスペースが入らなくてはならないようです。といってもこれ、以前の5.0.xの時のzshでは何も言われなかったので、厳格さがましたのかもしれません。ひとまず解決してよかった。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2