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

command not found: geometry_plugin_register when installing plugins both manually and with antigen #281

Closed
sornas opened this issue Oct 28, 2019 · 5 comments

Comments

@sornas
Copy link

sornas commented Oct 28, 2019

I installed geometry with git clone --recursive https://github.com/geometry-zsh/geometry $HOME/git/zsh-geometry and my .zshrc looks like this.

source /usr/local/share/antigen/antigen.zsh

source $HOME/git/zsh-geometry/geometry.zsh
export GEOMETRY_STATUS_SYMBOL="$"
export GEOMETRY_STATUS_SYMBOL_ERROR="$"

antigen use oh-my-zsh

antigen bundle git
antigen bundle taskwarrior

antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle desyncr/geometry-dir-info-prompt

antigen apply

source $HOME/git/zsh-geometry-host-info/host_info.zsh

When I start my shell I get

/Users/gustav/.antigen/bundles/desyncr/geometry-dir-info-prompt/plugin.zsh:14: command not found: geometry_plugin_register
/Users/gustav/git/zsh-geometry-host-info/host_info.zsh:16: command not found: geometry_plugin_register

Additional information:

$ zsh --version
zsh 5.7.1 (x86_64-apple-darwin18.2.0)
$ antigen help
Antigen v2.2.3 (ff391b5)
Revision date: 2018-01-02 13:19:57 +0100
# ...
@alxbl
Copy link
Collaborator

alxbl commented Oct 28, 2019

Hi @sornas,

Are you on the mnml branch? The host_info plugin was made for Geometry V1 (master branch) and is not compatible with V2. Converting it should not be too difficult, but it will not work as-is.

Also, I'm not too familiar with antigen, but geometry being an oh-my-zsh theme, I'm not sure if you can just source it directly like that, it would probably need to be configured as your OMZ theme by setting ZSH_THEME=geometry before OMZ gets sourced by antigen. I may be wrong on this.

@sornas
Copy link
Author

sornas commented Oct 28, 2019

You are correct that I am on mnml, it works correctly on the master-branch. Thanks! Do you know where I can find out more about how plugins work in v2? I can't seem to find any plugins for v2 to look at, and the wiki only mentions this, apparently outdated guide. I'd rather not stay on v1.

Sourcing it directly apparently works fine without me setting ZSH_THEME.

@sornas
Copy link
Author

sornas commented Oct 28, 2019

Wait, I can look at the built-in plugins.

@sornas sornas closed this as completed Oct 28, 2019
@sornas
Copy link
Author

sornas commented Oct 28, 2019

Thanks for the help!

@jedahan
Copy link
Member

jedahan commented Oct 29, 2019

If there are any functions you find useful please share them!

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

3 participants