From 31653ed99699425ba720f3a8c827c70d61313066 Mon Sep 17 00:00:00 2001 From: Patrick Jackson Date: Fri, 10 Nov 2023 16:58:05 -0700 Subject: Bash `enter_accept` best effort fixes (#1384) * fix(bash): Rewrite the enter_accept integration * docs(bash): Update bash installation instructions with warnings --- README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 513d9bd4..58971367 100644 --- a/README.md +++ b/README.md @@ -248,16 +248,30 @@ antigen bundle atuinsh/atuin@main ### bash -We need to setup some hooks, so first install bash-preexec: +#### [ble.sh](https://github.com/akinomyoga/ble.sh) +Atuin works best in bash when using [ble.sh](https://github.com/akinomyoga/ble.sh). + +With ble.sh installed, just add atuin to your .bashrc + +```bash +echo 'eval "$(atuin init bash)"' >> ~/.bashrc ``` + +#### [bash-preexec](https://github.com/rcaloras/bash-preexec) + +[Bash-preexec](https://github.com/rcaloras/bash-preexec) can also be used, but you may experience some minor problems with the recorded duration and exit status of some commands. + +To use bash-preexec, download and initialize it + +```bash 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 ``` Then setup Atuin -``` +```bash echo 'eval "$(atuin init bash)"' >> ~/.bashrc ``` -- cgit v1.3.1