Integrate nvm with zsh.
This commit is contained in:
parent
e04c4e0d4d
commit
48bc37f450
1
ansible/roles/javascript/files/zshrc_nvm
Normal file
1
ansible/roles/javascript/files/zshrc_nvm
Normal file
@ -0,0 +1 @@
|
|||||||
|
source /usr/share/nvm/init-nvm.sh
|
@ -1,30 +1,6 @@
|
|||||||
# - name: Build aur packages
|
|
||||||
# register: buildaur
|
|
||||||
# become_user: "{{ build_user.name }}"
|
|
||||||
# command: "aurutils-sync --no-view {{ item }}"
|
|
||||||
# args:
|
|
||||||
# creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
|
||||||
# loop:
|
|
||||||
# - foo
|
|
||||||
|
|
||||||
# - name: Update cache
|
|
||||||
# when: buildaur.changed
|
|
||||||
# pacman:
|
|
||||||
# name: []
|
|
||||||
# state: present
|
|
||||||
# update_cache: true
|
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- nvm
|
- nvm
|
||||||
- yarn
|
- yarn
|
||||||
state: present
|
state: present
|
||||||
#
|
|
||||||
# - name: Enable services
|
|
||||||
# systemd:
|
|
||||||
# enabled: yes
|
|
||||||
# name: "{{ item }}"
|
|
||||||
# daemon_reload: yes
|
|
||||||
# loop:
|
|
||||||
# - foo.service
|
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
- name: Configure zshrc additional imports
|
||||||
|
copy:
|
||||||
|
src: "files/zshrc_{{ item }}"
|
||||||
|
dest: "{{ account_homedir.stdout }}/.config/ansible_deploy/zshrc/{{ item }}.zsh"
|
||||||
|
mode: 0600
|
||||||
|
owner: "{{ account_name.stdout }}"
|
||||||
|
group: "{{ group_name.stdout }}"
|
||||||
|
loop:
|
||||||
|
- nvm
|
Loading…
x
Reference in New Issue
Block a user