From 6f2a477e10d5570c241e3141ad6272d86c0eb63f Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 25 Dec 2021 19:16:35 +0100 Subject: [PATCH] update nvm --- local.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/local.yml b/local.yml index 3606716..7a04e35 100644 --- a/local.yml +++ b/local.yml @@ -63,11 +63,19 @@ - name: install nvm env lineinfile: path: /home/gianm/.zshrc - line: '\x0a export NVM_DIR="$HOME/.nvm" \x0a - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"\x0a - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"\x0a' + line: 'export NVM_DIR="$HOME/.nvm"' + + - name: install nvm env + lineinfile: + path: /home/gianm/.zshrc + line: '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' + + - name: install nvm env + lineinfile: + path: /home/gianm/.zshrc + line: '[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"' - name: install node become: true become_user: gianm - shell: zsh && source /home/gianm/.zshrc && nvm install --lts \ No newline at end of file + shell: zsh && source /home/gianm/.zshrc && nvm install --lts