Search code examples
flutterfish

I switched my shell to fish and my flutter command is broken. How do I fix this?


I just recent switched my shell to [fish][1] and my flutter command doesn't seem to work anymore. the one error it returns with is

fish: Unknown command: flutter

I know I have to update my fish config but I'm not sure how to entirely fix the flutter error specifically. Could anyone help?


Solution

  • update $PATH environment variable by adding following line to ~/.config/fish/config.fish:

    set PATH /your/path/flutter/bin $PATH