Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ansible/roles/developer/tasks/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@
- name: Wire fnm into the shell (Linux)
ansible.builtin.lineinfile:
path: "{{ user_home }}/.bashrc"
regexp: '^eval "\$\(fnm env'
# Leading whitespace too, so a hand-written init inside an if-block counts.
regexp: '^\s*eval "\$\(fnm env'
line: 'eval "$(fnm env --use-on-cd)"'
state: present
owner: "{{ actual_user }}"
Expand Down Expand Up @@ -264,7 +265,8 @@
- name: Wire fnm into the shell (macOS)
ansible.builtin.lineinfile:
path: "{{ user_home }}/.zshrc"
regexp: '^eval "\$\(fnm env'
# Leading whitespace too, so a hand-written init inside an if-block counts.
regexp: '^\s*eval "\$\(fnm env'
line: 'eval "$(fnm env --use-on-cd)"'
state: present
mode: '0644'
Expand Down
Loading