Problem
After enabling fish, directly entering brew-related commands is invalid
ww@bogon ~ (main)> brew
fish: Unknown command: brew
Solution
This is because the path to brew has not been added to the fish configuration file. You just need to add it using fish_add_path
ww@bogon ~ (main) [127]> fish_add_path /opt/homebrew/bin
ww@bogon ~ (main)> brew
Example usage:
brew search TEXT|/REGEX/
brew info [FORMULA|CASK...]
brew install FORMULA|CASK...
brew update
brew upgrade [FORMULA|CASK...]
brew uninstall FORMULA|CASK...
brew list [FORMULA|CASK...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA|CASK
Contributing:
brew create URL [--no-fetch]
brew edit [FORMULA|CASK...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh