rossmacarthur/sheldon

Sheldon command to fetch directory of plugin

rossmacarthur opened this issue · 0 comments

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)