前提
Flutterの環境構築の段階で、.zshrcファイルに環境変数を追加しようとしました。
それまでは、command(open, touch, ls)等使うことができていたのですが、
おそらくですが、source ~/.bashrcを実行した後から使うことができなくなってしまいました。
実現したいこと
まずは、commandを使用できるようにしたいです。
発生している問題・エラーメッセージ
zsh: command not found: touch zsh: command not found: ls zsh: command not found: :wq
試したこと
https://teratail.com/questions/120125 を参考に「.bash_profile」に問題があるのではないかと考えたのですが、具体的にどうすればいいのか分かりませんでした。
補足情報(FW/ツールのバージョンなど)
macOS Monterey(12.3.1)
Apple M1
.zshrcファイル
export PATH="&PATH:/Users/〇〇/Desktop/practice/flutter/bin"
export PATH="&PATH:/Users/〇〇/development/flutter/bin"
.bash_profile
source ~/.profile
>>> conda initialize >>>
!! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/〇〇/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/〇〇/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/〇〇/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/〇〇/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
<<< conda initialize <<<
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/10/04 01:44