Trying to globally install Wasp with ZSH
I have been trying to configure my device (MacOS M1 Pro Ventura 13.4) with 'wasp completion'. However, my profile is a zsh profile. I have tried using oh-my-zsh and other ways, but still cant get it to work. I am sure its something obvious, but any help would be super appreciated thanks everyone! #đŸ™‹questions
17 Replies
Hi @Sam Jakshtis. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To install Wasp globally on your MacOS device with a ZSH shell, you can follow these steps:
1. Open your terminal and run the following command to install Wasp:
This command downloads and runs the Wasp installer script. If you're using a Mac with an M1 chip, you might need to install Rosetta, as the Wasp binary is built for x86 and not for arm64 (Apple Silicon). You can install Rosetta by running
softwareupdate --install-rosetta
in your terminal (source (https://wasp-lang.dev/docs/quick-start#installation-1)).
2. After the installation, you might get a warning that the installation directory is not on your PATH. You can add it to your PATH by adding the following line into your .zshrc
file:
Replace <your_installation_directory>
with the directory where Wasp was installed.
3. To set up Bash completion, run the wasp completion
command and follow the instructions. However, there's an open issue on the Wasp GitHub page about making Bash completion easier to discover and install, and it's mentioned that the instructions might not be clear for ZSH users (source (https://github.com/wasp-lang/wasp/issues/256)). There's also a closed issue that suggests updating the wasp completion
help to mention .zshrc
for MacOS (source (https://github.com/wasp-lang/wasp/issues/948)).
Unfortunately, the exact steps to set up Bash completion for ZSH are not provided in the knowledge sources. You might want to check the Wasp documentation or ask for help in the Wasp community for more specific instructions.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Sam Jakshtis, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Let me check with our Mac users: @miho @Vinny (@Wasp) any suggestions?
@martinsos Thank you so much!
oof yeah this is definitely better suited for @miho I actually never installed wasp completions
@Vinny (@Wasp) Out of curiosity, do you always use curl when building/starting new, or is there a better method?
to start a new wasp project?
Essentially to have wasp on your system as a Mac user so as not to always have to run the curl command (which is what I am experiencing). I also apologize, more of a junior developer, but excited about Wasp
hm that doesn't sound right
after you install it and add it to your path, it should always be there
btw you don't need to install wasp completion to get wasp to work as expected
what happens when you run
wasp version
?Yeah,
curl
thing is just one time installationThats interesting, I need to do it everytime I open my IDE (VS Code) or else it says zsh: command not found: wasp
Wohooo @Sam Jakshtis, you just became a Waspeteer level 1!
When I do the curl and then my version is: wasp version
0.13.2
0.13.2
When you install Wasp with curl, did you see this warning:
Did you do something about it? đŸ˜„
You should add this line to your
~/.zshrc
file:
Replace <username>
with your username, echo $USER
if you don't know it.Gosh I just needed to restart the terminal
Thank you all for your help, super excited to be part of this community @miho @Vinny (@Wasp) @martinsos
oh crap. yeah. i forget this all the time too
Hehe no worries, I am glad it was that easy to solve :D!