onatcipli / rename

The Rename CLI Tool is a utility designed to modify your Flutter project's AppName and BundleId across various platforms, such as iOS, Android, Macos, Linux, Windows and Web
https://pub.dev/packages/rename
MIT License
164 stars 39 forks source link

zsh: command not found: rename #2

Closed natanloterio closed 4 years ago

natanloterio commented 4 years ago

Hi there, i just followed the instructions:

$ pub global activate rename $ rename

But I got this error instead: zsh: command not found: rename

Can you give me a hint on that?

dexcell commented 4 years ago

You should add to you zsh profile, as instructed. I just install this package, looks good. If you on mac like me.

open ~/.zshrc

Add

export PATH="$PATH":"$HOME/.pub-cache/bin"

Save the file, Open new terminal and cd to your project root, and rename should work

onatcipli commented 4 years ago

Also, you can check the following site for adding pub to your path

https://dart.dev/tools/pub/cmd/pub-global#running-a-script-from-your-path

onatcipli commented 4 years ago

since it is not related to this package, I'm closing it