Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air not being installed in zsh path on macOS #558

Closed
omicron1100 opened this issue Mar 25, 2024 · 6 comments
Closed

Air not being installed in zsh path on macOS #558

omicron1100 opened this issue Mar 25, 2024 · 6 comments

Comments

@omicron1100
Copy link

Followed instructions to install Air via go install using zsh on macOS but it gives the error zsh: command is not found: air. Tried to follow the commands under Q&A but it didn't work for me. I am not sure if I'm doing it correctly.

@NeoEvaX
Copy link

NeoEvaX commented Mar 25, 2024

Went through this today. Make sure to add:
export PATH=$PATH:$HOME/go/bin
to your .zshrc file. Then reload your terminal.

This seems to be the destination of go install files.

@adiguno
Copy link

adiguno commented Mar 25, 2024

This worked for me.
Edit your .zshrc file:

# hot reload for go servers using air
path+=('~/go/bin')
alias air='~/go/bin/.air'

@DeniesKresna
Copy link

in my case, ".air" is not exist in go/bin instead "air" without dot.
just update above code to use
alias air='~/go/bin/air'
then its works for me.

@Alisalmasi
Copy link

in my case, ".air" is not exist in go/bin instead "air" without dot. just update above code to use alias air='~/go/bin/air' then its works for me.

this worked for me , thanks.

@Kies8
Copy link

Kies8 commented May 18, 2024

in my case, ".air" is not exist in go/bin instead "air" without dot. just update above code to use alias air='~/go/bin/air' then its works for me.

this works also for me (macOS M1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants