sheldon icon indicating copy to clipboard operation
sheldon copied to clipboard

Sheldon command to fetch directory of plugin

Open rossmacarthur opened this issue 2 years ago • 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)

rossmacarthur avatar Feb 27 '22 18:02 rossmacarthur