-1

on running in a zsh terminal vim ~/.zshrc pressing I and entering

export PATH="$PATH:$HOME/F/bin"

pressing ESC KEY and typing :wq! and opening a new terminal window flutter --version says flutter command not found attaching two screenshots the first one shows the location of F inside which flutter resides Finder Location For F(which has flutter inside) and another which shows my exact output saved in vim ~/.zshrc what Am I doing wrong?

enter image description here

Levi
  • 33
  • 7

2 Answers2

1

I recommend you to use vs code to edit path , Install vs code and then

Try these steps :

  1. code $HOME/.zshrc
  2. export PATH=$PATH:$HOME/<path to flutter/bin>
Coder Addy
  • 423
  • 3
  • 18
  • Hi Addy, I've installed VSC code on my system, where to write all of this inside vsc? thanks! – Levi Nov 24 '21 at 10:37
  • just write any dir. of terminal. – Coder Addy Nov 24 '21 at 10:38
  • I'm sorry an absolute newbie here, how do i do that? i have the vsc application open should i create a new file? – Levi Nov 24 '21 at 10:43
  • relax bro ! just open terminal app , and then type "code $HOME/.zshrc" hit enter , .... it will open .zshrc file and then add "export PATH=$PATH:$HOME/" and save .zshrc using ctrl+s – Coder Addy Nov 24 '21 at 10:47
  • 1
    Edited in vsc code, Flutter seems to work fine. – Levi Nov 24 '21 at 12:09
1

After adding the path to .zshrc file, have you reloaded the .zshrc? Try source ~/.zshrc.

ouflak
  • 2,458
  • 10
  • 44
  • 49
Adrian
  • 11
  • 2
  • Yes, I've reloaded the .zhsrc file, where do i have to execute this source ~/.zshrc command? – Levi Nov 24 '21 at 11:25
  • In the terminal, doesn't matter the location, this is the exact location of your zshrc file - ~/ this is the equivalent of $HOME which is the /User/{yourusernamme} folder, also known as home folder. – Adrian Nov 24 '21 at 11:51