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

Sheldon command to fetch directory of plugin #137

Open
rossmacarthur opened this issue Feb 27, 2022 · 0 comments
Open

Sheldon command to fetch directory of plugin #137

rossmacarthur opened this issue Feb 27, 2022 · 0 comments
Labels
feature New feature or request

Comments

@rossmacarthur
Copy link
Owner

rossmacarthur commented Feb 27, 2022

It might be useful to get the location of a plugin dynamically based on the Sheldon install. For example if you wanted to set the ZSH environment variable for the location of the Oh My Zsh clone. It would be nice if there was a command line way of fetching this information.

Ideas

$ sheldon config --get plugins.oh-my-zsh.clone_dir
/Users/ross/.local/share/sheldon/repos/github.com/ohmyzsh/ohmyzsh
$ sheldon config --get plugins.pure.files
/Users/ross/.local/share/sheldon/repos/github.com/rossmacarthur/pure/async.zsh
/Users/ross/.local/share/sheldon/repos/github.com/rossmacarthur/pure/pure.zsh
# ~/.zshrc

export ZSH=$(sheldon config --dir oh-my-zsh)
@rossmacarthur rossmacarthur added the feature New feature or request label Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant