Skip to content

Commit

Permalink
Add a newline when editing shell rc files (atuinsh#60)
Browse files Browse the repository at this point in the history
* Add a newline when editing shell rc files

* Update install.sh

Co-authored-by: bl-ue <[email protected]>

* Update install.sh

Co-authored-by: bl-ue <[email protected]>

Co-authored-by: bl-ue <[email protected]>
  • Loading branch information
avinassh and bl-ue authored May 8, 2021
1 parent 7c87624 commit 035bf9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ case "$OSTYPE" in
esac

# TODO: Check which is in use
echo 'eval "$(atuin init zsh)"' >> ~/.zshrc
printf '\neval "$(atuin init zsh)"' >> ~/.zshrc

curl https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh -o ~/.bash-preexec.sh
echo '[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh' >> ~/.bashrc
printf '\n[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh' >> ~/.bashrc
echo 'eval "$(atuin init bash)"' >> ~/.bashrc

0 comments on commit 035bf9a

Please sign in to comment.