summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-04-26 15:46:47 +0100
committerEllie Huxtable <e@elm.sh>2021-04-26 15:46:47 +0100
commit5a2b721ceb3ec2ad7df4f9e7c3776b2979683d19 (patch)
treea0a4b4f3987cd621c147a5690786725cad965e7a
parentdea97decdca6d5b4ab9948b07a6eaf30e096ac28 (diff)
Update install
-rwxr-xr-xinstall.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index b540a38b..31759681 100755
--- a/install.sh
+++ b/install.sh
@@ -156,3 +156,10 @@ case "$OSTYPE" in
bsd*) __atuin_install_unsupported ;;
*) __atuin_install_unsupported ;;
esac
+
+# TODO: Check which is in use
+echo 'eval "$(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
+echo 'eval "$(atuin init bash)"' >> ~/.bashrc