-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
Cannot add pure to prompt themes, connected to MB M1? #584
Comments
What is the output of the npm install? If you're not using zsh from homebrew then automatic linking won't work and there's additional steps to follow, which should've been shown in the npm install output (i.e. adding pure to |
Hey and thanks @mafredri , the output is: npm install --global pure-prompt
changed 1 package, and audited 2 packages in 1s
found 0 vulnerabilities Nothing shown there. It is just strange that it worked the last two years
Isn't oh-my-zsh using zsh? Anything else I can try? |
Did you remove
We're not associated with |
I tried removing
|
I also tried the manual way, like described: mkdir -p "$HOME/.zsh"
git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
# .zshrc
fpath+=$HOME/.zsh/pure Unfortunately, pure theme still not in the prompt list. |
Ok I take the last message, back. Setting it up manually, worked after |
I'm guessing it's the non-standard Homebrew path that's causing it ( Lines 19 to 20 in b83ad6d
So I'm pretty sure the reason there's no error is permissions have been modified for |
Oh you are right, on my other laptop the path is still The path changed on M1 laptops: https://www.reddit.com/r/MacOS/comments/jw9guu/why_did_homebrew_move_from_usrlocalto_opthomebrew/ Do you think this is something your package could check on install? |
Same problem here, on MacBook Air M1. |
same problem |
thanks, it work |
1 similar comment
thanks, it work |
Thanks!! This works perfectly! I've gotten so used to pure I can't handle the standard prompt... |
Just installed Pure via Homebrew on an M1 iMac and I’m having the same issue. I can work around it, but it would nice if Pure could be updated to handle the new Homebrew paths. |
@tobinibot PRs are welcome, but it's not exactly trivial to do it well. We'd have to:
Edit: Then again, we could also just add another hard-coded path like we've done for @khaosspawn when you install Pure via npm, it should tell you what to do, i.e. add the An alternative is to pure install via Homebrew |
Thanks @mafredri ! Adding the fpath line was what did the trick. |
@mafredri Hmm, yeah, figuring it out the “right way” does seem like a lot of work. I’m not enough of a command-line guru to pull together a PR. Hard-coding in another path to check could be an interesting option, though. I’m happy to help in terms of how the directory structure looks now on an M1. What exactly are you looking for, just the new location of the |
Came across the same issue. I noticed that homebrew exposes the following global variables |
On M1 Macs, the Homebrew path has changed to `/opt/homebrew` so we check at which path zsh is present. Additionally we try to install into standard unix path if present, however, this will likely only help people installing via `sudo`. Finally, the error text has been updated to prioritize updating `.zshrc` instead of doing a manual install. Fixes #584.
Could someone with an M1 Mac test #606 to see if it works? You can clone the repo and then run |
I just tried on an Apple Silicon Mac. I don't have |
I was having issues (along with others [1]) getting Pure Prompt to work correctly on an M1 Mac when I installed it with NPM or Homebrew. Installing manually (though a little less elegant) gets things working. [1]: sindresorhus/pure#584
Trying this on my new M1Pro and failing during the
Manually adding path to |
@adamgruber that’s expected when you haven’t installed (or aren’t using) ZSH from Homebrew. We don’t have write permissions to that path. The manual add of fpath is the fix. |
I added |
Thank you @diogotorres97, however you missed the "s" in your answer: # .zshrc
fpath+=/opt/homebrew/share/zsh/site-functions
autoload -U promptinit; promptinit
prompt pure Now Pure (installed with Homebrew) is working on my MacBook Air M1 with macOS Monterey. |
If anyone has this issue but is on an intel chip mac, this solution worked for me. I believe the problem is due to running a freshly formatted mac with Monterey, rather than the chip. |
I'd also like to point out that another option is to change the Homebrew provided Zsh, FWIW. brew install zsh
echo /opt/homebrew/bin/zsh | sudo tee -a /etc/shells
chsh -s /opt/homebrew/bin/zsh |
Interestingly, I can get Pure working just fine if I But when opening new windows Pure never loads, and its not in the |
@aaronsmulktis doing |
@christophrumpel |
I'm already success execute |
Install through Homebrew instead See sindresorhus/pure#584
I had a similar kind of issue when installing pure-prompt on TrueNAS Scale (which is running Debian)
Initially I installed pure-prompt using
Effectively same issue as above... Ended up doing That worked for me as well (although not ideal). |
General information
I'm using the pure theme now for two years without any issues. Yesterday I switched to a new MacBook Air M1 and now I'm having some issues. I cannot set the prompt to pure with
prompt pure
.System report (output of
prompt_pure_system_report
):zsh: command not found: prompt_pure_system_report
Other information
I have:
Problem description
When I try to add the theme with
prompt pure
:Result:
When I show the list of available themes with
prompt -l
,pure
isnot
in this list.I have installed it, like the years before, with
npm install --global pure-prompt
.I'm not sure what the problem is. Could it be connected to the M1 MacBook?
Reproduction steps
.zshrc
file.My
.zshrc
:The text was updated successfully, but these errors were encountered: