maaslalani / draw

Draw in your terminal
MIT License
460 stars 18 forks source link

bash: draw: command not found #4

Closed msr8 closed 2 years ago

msr8 commented 2 years ago

Describe the bug I just installed the program by running go install github.com/maaslalani/draw@latest and it says that the command is not found even after I restarted my terminal

To Reproduce 1) Be on MacOS 2) Install go via homebrew by doing brew install go 3) Install draw by doing go install github.com/maaslalani/draw@latest

Expected behavior The program is supposed to be ran

Screenshots Screenshot 2022-04-17 at 00 27 31

Desktop (please complete the following information):

Additional Info: image

maaslalani commented 2 years ago

Hi! I imagine this is because your GOBIN is not set or it is not added to your PATH.

Try this and try running draw again.

export PATH=$PATH:$HOME/go/bin

Alternatively, you could execute $HOME/go/bin/draw.

maaslalani commented 2 years ago

Feel free to reopen this issue if adding your $GOBIN to your PATH doesn't solve the issue!

msr8 commented 2 years ago

That worked, thank you!