Add a newline when editing shell rc files (#60)

* Add a newline when editing shell rc files

* Update install.sh

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>

* Update install.sh

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>

Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
avinassh 2021-05-08 18:27:27 +05:30 committed by GitHub
parent 7c87624d8a
commit 035bf9a99b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,8 +145,8 @@ case "$OSTYPE" in
esac esac
# TODO: Check which is in use # 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 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 echo 'eval "$(atuin init bash)"' >> ~/.bashrc