Moved (back) to anyenv
This commit is contained in:
parent
1d4b7497ad
commit
90b7657b95
4 changed files with 50 additions and 47 deletions
45
playbooks/roles/common/tasks/anyenv.yml
Normal file
45
playbooks/roles/common/tasks/anyenv.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
---
|
||||||
|
- name: Install anyenv
|
||||||
|
git:
|
||||||
|
repo: https://github.com/anyenv/anyenv
|
||||||
|
dest: ~/.anyenv
|
||||||
|
|
||||||
|
- name: Ensure anyenv got installed
|
||||||
|
file:
|
||||||
|
path: ~/.anyenv
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: Ensure anyenv is initialized
|
||||||
|
shell: ~/.anyenv/bin/anyenv init
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs
|
||||||
|
|
||||||
|
- name: anyenv - pyenv
|
||||||
|
shell: ~/.anyenv/bin/anyenv install pyenv
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs/pyenv
|
||||||
|
|
||||||
|
- name: anyenv - rbenv
|
||||||
|
shell: ~/.anyenv/bin/anyenv install rbenv
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs/rbenv
|
||||||
|
|
||||||
|
- name: anyenv - rbenv-gemset
|
||||||
|
git:
|
||||||
|
repo: https://github.com/jf/rbenv-gemset
|
||||||
|
dest: ~/.anyenv/envs/rbenv/plugins/rbenv-gemset
|
||||||
|
|
||||||
|
- name: anyenv - nodejs
|
||||||
|
shell: ~/.anyenv/bin/anyenv install nodenv
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs/nodenv
|
||||||
|
|
||||||
|
- name: anyenv - erlang
|
||||||
|
shell: ~/.anyenv/bin/anyenv install erlenv
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs/erlenv
|
||||||
|
|
||||||
|
- name: anyenv - elixir
|
||||||
|
shell: ~/.anyenv/bin/anyenv install exenv
|
||||||
|
args:
|
||||||
|
creates: ~/.anyenv/envs/exenv
|
|
@ -1,42 +0,0 @@
|
||||||
---
|
|
||||||
- name: Install asdf
|
|
||||||
git:
|
|
||||||
repo: https://github.com/asdf-vm/asdf.git
|
|
||||||
dest: ~/.asdf
|
|
||||||
|
|
||||||
- name: Ensure asdf got installed
|
|
||||||
file:
|
|
||||||
path: ~/.asdf
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: asdf - python
|
|
||||||
shell: ~/.asdf/bin/asdf plugin-add python
|
|
||||||
args:
|
|
||||||
creates: ~/.asdf/plugins/python
|
|
||||||
|
|
||||||
- name: asdf - ruby
|
|
||||||
shell: ~/.asdf/bin/asdf plugin-add ruby
|
|
||||||
args:
|
|
||||||
creates: ~/.asdf/plugins/ruby
|
|
||||||
|
|
||||||
- name: setup default gems
|
|
||||||
file:
|
|
||||||
src: ~/.dotfiles/defaults/default-gems
|
|
||||||
dest: ~/.default-gems
|
|
||||||
state: link
|
|
||||||
force: yes
|
|
||||||
|
|
||||||
- name: asdf - nodejs
|
|
||||||
shell: ~/.asdf/bin/asdf plugin-add nodejs
|
|
||||||
args:
|
|
||||||
creates: ~/.asdf/plugins/nodejs
|
|
||||||
|
|
||||||
- name: asdf - erlang
|
|
||||||
shell: ~/.asdf/bin/asdf plugin-add erlang
|
|
||||||
args:
|
|
||||||
creates: ~/.asdf/plugins/erlang
|
|
||||||
|
|
||||||
- name: asdf - elixir
|
|
||||||
shell: ~/.asdf/bin/asdf plugin-add elixir
|
|
||||||
args:
|
|
||||||
creates: ~/.asdf/plugins/elixir
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- import_tasks: asdf.yml
|
- import_tasks: anyenv.yml
|
||||||
- import_tasks: neovim.yml
|
- import_tasks: neovim.yml
|
||||||
- import_tasks: rust.yml
|
- import_tasks: rust.yml
|
||||||
- import_tasks: tmux.yml
|
- import_tasks: tmux.yml
|
||||||
|
|
|
@ -45,7 +45,7 @@ antigen bundle git
|
||||||
antigen bundle command-not-found
|
antigen bundle command-not-found
|
||||||
antigen bundle zsh-users/zsh-syntax-highlighting
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
||||||
antigen bundle zsh-users/zsh-completions
|
antigen bundle zsh-users/zsh-completions
|
||||||
antigen bundle asdf
|
antigen bundle ress997/zsh-completions-anyenv
|
||||||
if [[ ! ($(uname) -eq "Darwin") ]]; then
|
if [[ ! ($(uname) -eq "Darwin") ]]; then
|
||||||
antigen bundle matthieusb/zsh-sdkman
|
antigen bundle matthieusb/zsh-sdkman
|
||||||
fi
|
fi
|
||||||
|
@ -120,9 +120,6 @@ compctl -K _pip_completion pip
|
||||||
|
|
||||||
# export TERM="tmux-256color"
|
# export TERM="tmux-256color"
|
||||||
export SHELL="/bin/zsh"
|
export SHELL="/bin/zsh"
|
||||||
# asdf
|
|
||||||
. $HOME/.asdf/asdf.sh
|
|
||||||
. $HOME/.asdf/completions/asdf.bash
|
|
||||||
|
|
||||||
export PATH="$(yarn global bin):$PATH"
|
export PATH="$(yarn global bin):$PATH"
|
||||||
|
|
||||||
|
@ -138,3 +135,6 @@ else
|
||||||
printf "No zshsrc\nOne has been created"
|
printf "No zshsrc\nOne has been created"
|
||||||
touch $HOME/.zshsrc
|
touch $HOME/.zshsrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
export PATH="$PATH:$HOME/.anyenv/bin"
|
||||||
|
eval "$(anyenv init -)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue