diff --git a/smma/homebrew.md b/smma/homebrew.md index 5bda3d1..ef486b7 100644 --- a/smma/homebrew.md +++ b/smma/homebrew.md @@ -1,27 +1,42 @@ # Install Homebrew +```bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` -# Update your PATH (choose the appropriate one based on your shell) - -# For zsh +# Update your PATH +```bash echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc +``` +# Update your shell +```bash source ~/.zshrc - -# For bash -echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile -source ~/.bash_profile +``` # Install ImageMagick +```bash brew install imagemagick +``` # Verify the installation +```bash magick --version +``` + +--- + +> Keep Homebrew up-to-date # Update Homebrew +```bash brew update +``` # Upgrade installed packages +```bash brew upgrade +``` # Cleanup old versions +```bash brew cleanup +``` \ No newline at end of file