Skip to content

Commit

Permalink
Merge pull request #5 from etlam/master
Browse files Browse the repository at this point in the history
[FIX] Do not always jump to ~ when bash gets started
  • Loading branch information
grzegorznowak authored May 1, 2020
2 parents 9154729 + 23cc5ac commit 4cb16e3
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 4cb16e3

Please sign in to comment.