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

/usr/local/bin/zsh is not a supported shell #8

Closed
dserodio opened this issue Jul 2, 2014 · 6 comments
Closed

/usr/local/bin/zsh is not a supported shell #8

dserodio opened this issue Jul 2, 2014 · 6 comments

Comments

@dserodio
Copy link

dserodio commented Jul 2, 2014

I installed a more recent version of zsh in /usr/local/bin and that's what I use as my shell, but angel-PS1 doesn't recognize it:

angel-PS1: /usr/local/bin/zsh is not a supported shell: Can't locate AngelPS1/Shell//usr/local/bin/zsh.pm in @INC (@INC contains: /Users/dserodi/.config/angel-PS1 /etc/xdg/angel-PS1 /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at AngelPS1/Shell.pm line 62.

This happens both on master and develop branches, and the error above is from the develop branch.

@dolmen
Copy link
Owner

dolmen commented Jul 2, 2014

Thanks for the report!
As a quick workaround until I fix the issue, you can use the --shell option to tell angel-PS1 what is your shell:

eval $(angel-PS1 --shell=zsh)

@dolmen
Copy link
Owner

dolmen commented Jul 2, 2014

Could you tell me your operating system?

$ uname

And the output of those commands, while in your shell:

$ cat /proc/$$/comm
$ cat /proc/$$/cmdline
$ ps -o comm= $$

@dolmen
Copy link
Owner

dolmen commented Jul 2, 2014

I have probably fixed the issue in a2dbcd8e8f04afd1b5711fe61456b7b40f6254b6.
Please check:

$ git checkout devel
$ eval $(perl -Ilib bin/angel-PS1)

@dserodio
Copy link
Author

dserodio commented Jul 7, 2014

Sorry for the delay, I'm running OS X 10.9.3

$ uname
Darwin
$ ps -o comm= $$
/usr/local/bin/zsh
$ git checkout devel
$ eval $(perl -Ilib bin/angel-PS1)
angel-PS1: load error: angel-PS1: angel-PS1: angel-PS1: angel-PS1: Can't locate AngelPS1/System/darwin.pm in @INC (@INC contains: /Users/dserodi/.config/angel-PS1 /etc/xdg/angel-PS1 lib /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at lib/AngelPS1/System.pm line 25.
BEGIN failed--compilation aborted at lib/AngelPS1/Plugin/Battery.pm line 14.
Compilation failed in require at lib/AngelPS1/Prompt/Default.pm line 13.
BEGIN failed--compilation aborted at lib/AngelPS1/Prompt/Default.pm line 13.

@dolmen
Copy link
Owner

dolmen commented Jul 9, 2014

Unfortunately OS X is not yet supported. I have to implement lib/AngelPS1/System/darwin.pm on the model of lib/AngelPS1/System/linux.pm.

@dolmen
Copy link
Owner

dolmen commented Oct 21, 2015

OS X port is in progress in branch port/darwin. See #14.

@dolmen dolmen closed this as completed Oct 21, 2015
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

2 participants