Help us understand the problem. What is going on with this article?

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

More than 3 years have passed since last update.

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)

おしまい。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away