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
Issue with Apple Silicon #540
Comments
@boarder2 you don't need |
One interesting thing would be if rosetta is enabled for the shell and if it makes a difference! (e.g. Arm binaries vs x64 binaries with rosetta) |
@royvou I was in the assumption it would build the arm version as homebrew handles building locally. Unless that somehow doing funky things. |
That's the info I wanted to add in the issue! as it could be both (in theory) , depending if the shell was using rosetta or not. (and it might be worth to check if homebrew 3 is installed which has official support for m1 macs) If I'm correct I've seen a similar issue somewhere else, where the native binary arm version did not work correctly but it did work in rosetta (or was it the other way around?), will try if I can find the source. |
Version of OMP is 3.115.0 Eval also works for me on macOS on Intel This is where the reference to go-bindata is https://ohmyposh.dev/docs/contributing_started I was able to get it to compile locally so I can play around if you've got any suggestions where to start! |
Ok, I think I've tracked this down to shirou/gopsutil#1043 When using Which doesn't pass a If I replace my .zshrc with the contents of omp.zsh and add a Seems like you could probably hard code the shell type in omp.zsh since you've already made the determination of which shell you're trying to use at that point. |
Description
When trying to use OMP on an Apple Silicon device with zsh
Environment
Steps to Reproduce
Expected behavior: Prompt should show as expected
Actual behavior: Shows the following error then the default prompt
(eval):1: bad pattern: ^[[38
I've narrowed it down to
oh-my-posh/src/init/omp.zsh
Line 14 in d3252ac
I've attempted to compile OMP locally to dig further but ran into issues with getting go-bindata to work.
The text was updated successfully, but these errors were encountered: