Skip to content

Commit

Permalink
[FIX] Do not always jump to ~ when bash gets started
Browse files Browse the repository at this point in the history
  • Loading branch information
etlam committed Apr 30, 2020
1 parent 9154729 commit 23cc5ac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@
blockinfile: |
dest=/etc/bash.bashrc backup=no
insertbefore="# If not running interactively"
content="cd ~
export NVM_DIR=\"{{ nvm_dir }}\"
content="export NVM_DIR=\"{{ nvm_dir }}\"
[ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\"
[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\""
when: ansible_os_family == "Debian"

- name: Add the NVM's variables to all the profiles in the system (RedHat)
blockinfile: |
dest=/etc/bashrc backup=no
content="cd ~
export NVM_DIR=\"{{ nvm_dir }}\"
content="export NVM_DIR=\"{{ nvm_dir }}\"
[ -s \"$NVM_DIR/nvm.sh\" ] && \. \"$NVM_DIR/nvm.sh\"
[ -s \"$NVM_DIR/bash_completion\" ] && \. \"$NVM_DIR/bash_completion\""
when: ansible_os_family == "RedHat"
Expand Down

0 comments on commit 23cc5ac

Please sign in to comment.