want an option to put a symbolic link from "$(anyenv root)/*env" to "~/.*env" on installation.
Overview
as the titles.
-
*env: rbenv, pyenv, etc.
Reason
When you install with anyenv, they will be located in $(anyenv root), often ~/.anyenv/. Some applications in the world may support *env, but the majority of them only scan at ~/.*env. (RubyMine, etc.)
At startup, IntelliJ IDEA scans your ~/.rbenv folder, and automatically configures SDK's for each Ruby interpreter. The detected interpreters are shown in the Modules page of the Project Structure Dialog dialog. https://www.jetbrains.com/help/idea/2017.3/rbenv-support.html#1
The solution to this is to manually put a symbolic link to it, but I thought it would be easier to do it for you when you install it with anyenv.
Example
-
anyenv install rbenv --link
Thanks!
Sounds great. I want to hear more use cases.
Sounds awesome, similar to brew link , anyenv should have possibility to link anyenv managed envs to the paths like ~/.*env
At this moment doing it via script after anyenv install
for env in $(anyenv install -l); do ln -svnf $(anyenv root)/envs/$env/ $HOME/.$env ; done
instead of doing that ugly stuff what i really like to do it just
echo "goenv jenv nodenv pyenv tfenv" | xargs -n1 anyenv install --link