/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/bin/bash :: bash로 실행을 시키겠다
그러면 bash는 무엇이냐? shell의 한 종류이다.
그럼 또 shell은 무엇이냐? 운영 체제 상에서 다양한 운영 체제 기능과 서비스를 구현하는 인터페이스를 제공하는 프로그램이다.
curl : 오픈 소스로 개발되어 윈도우와 리눅스에 기본 설치되고 있는 웹 개발 툴
-fsSL : https://explainshell.com/explain?cmd=curl+-fsSL+example.org# 참고
The script explains what it will do and then pauses before it does it.
라고 되어 있었는데.. brew help가 되지 않았다.
Warning: /opt/homebrew/bin is not in your PATH.
PATH에 등록되지 않았다.
echo 'export PATH=/opt/homebrew/bin:$PATH' >> ~/.zshrc
를 입력하면 된다고 하지만.. 다른 방법이 없는지 homebrew page를 좀더 살펴 보았다.
https://docs.brew.sh/Installation#linux-or-windows-10-subsystem-for-linux
git clone https://github.com/Homebrew/brew homebrew
eval "$(homebrew/bin/brew shellenv)"
brew update --force --quiet
chmod -R go-w "$(brew --prefix)/share/zsh"
를 써서 해결했다.