anyenv icon indicating copy to clipboard operation
anyenv copied to clipboard

want an option to put a symbolic link from "$(anyenv root)/*env" to "~/.*env" on installation.

Open masseater opened this issue 5 years ago • 2 comments

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!

masseater avatar Oct 20 '20 06:10 masseater

Sounds great. I want to hear more use cases.

riywo avatar Jun 13 '21 05:06 riywo

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

r00tvvm avatar Feb 08 '22 17:02 r00tvvm