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