dolmen / angel-PS1

Your fancy shell prompt fed by your guardian angel
https://twitter.com/nglPS1
GNU Affero General Public License v3.0
61 stars 3 forks source link

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

Closed dserodio closed 8 years ago

dserodio commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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 commented 10 years ago

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

$ git checkout devel
$ eval $(perl -Ilib bin/angel-PS1)
dserodio commented 10 years ago

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 commented 10 years ago

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 commented 8 years ago

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