From 4a982c060cbd72cd7331e2d9ffe9eb5e03cc1e8b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 26 Nov 2022 17:58:49 +0100 Subject: [PATCH] install asdf --- roles/system/tasks/main.yml | 9 +++++++-- roles/system/templates/.zshrc.j2 | 5 +++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/roles/system/tasks/main.yml b/roles/system/tasks/main.yml index 9b08abc..1995301 100644 --- a/roles/system/tasks/main.yml +++ b/roles/system/tasks/main.yml @@ -15,6 +15,7 @@ - keepassxc - zsh - ripgrep + - curl - name: Set default shell to zsh become: true user: @@ -23,8 +24,12 @@ - name: Install .gitconfig template: src: "{{ role_path }}/templates/.gitconfig.j2" - dest: "/home/{{ ansible_user_id }}/.gitconfig" + dest: ~/.gitconfig +- name: Install asdf + git: + repo: https://github.com/asdf-vm/asdf.git + dest: ~/.asdf - name: Install .zshrc template: src: "{{ role_path }}/templates/.zshrc.j2" - dest: "/home/{{ ansible_user_id }}/.zshrc" + dest: ~/.zshrc diff --git a/roles/system/templates/.zshrc.j2 b/roles/system/templates/.zshrc.j2 index fb47062..9f394b5 100644 --- a/roles/system/templates/.zshrc.j2 +++ b/roles/system/templates/.zshrc.j2 @@ -46,3 +46,8 @@ alias gs='git status' alias gb='git branch' alias ga='git add' alias gl='git log' + +# asdf +. $HOME/.asdf/asdf.sh +fpath=(${ASDF_DIR}/completions $fpath) +autoload -Uz compinit && compinit