Skip to content

Instantly share code, notes, and snippets.

@Orismann
Forked from zoonderkins/mac-flutter-path.md
Created September 6, 2024 03:47
Show Gist options
  • Save Orismann/a7d264213f7963658c96a3fc861d2125 to your computer and use it in GitHub Desktop.
Save Orismann/a7d264213f7963658c96a3fc861d2125 to your computer and use it in GitHub Desktop.
Mac-flutter-path #mac

Make flutter cmd run in zsh

// When you downloaded flutter sdk, unzip it to ~/flutter
// Add to ~/.bash_profile
nano .bash_profile
export PATH="$PATH:/Users/lol/development/flutter/bin"

// save 
soure ~/.bash_profile
// ZSH 
// Add the path to your ~/.zshrc

# Export flutter
export PATH=$HOME/flutter/bin:$PATH

// Make it happend and restart iterm or terminal

source ~/.zshrc

Reference: Github

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment