LoginSignup
5
6

More than 5 years have passed since last update.

ターミナルをいじってるとzshが「command not found」と叫ぶので、叫ばないようにした

Posted at

Terminalでコマンド打ってると、ちょいちょい以下のような叫びを見かけました。

% brew -v
zsh: command not found: brew

このコマンドに出くわすたびに、
ヾ(o゚ω゚o)ノ゙zshが「command not found」と云うを参考に対応してたのですが、そろそろこの関係を終わりにしたいなと決意

結論としては、
zshにしたときにbrewコマンドがcommand not found になるを参考に

zshenvファイルを開き、

vi .zshenv

この設定を記載し、保存しました。

export PATH="/usr/local/bin:$PATH"

その結果、わだかまりない、清々しい関係になりました。

% brew -v                                                                                                                                     (git)-[staging]
Homebrew 0.9.5 (git revision 7623d; last commit 2015-09-17)

おしまい。

5
6
1

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
5
6