summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorPatrick Jackson <patrick@jackson.dev>2023-11-10 16:58:05 -0700
committerGitHub <noreply@github.com>2023-11-10 23:58:05 +0000
commit31653ed99699425ba720f3a8c827c70d61313066 (patch)
tree771ff8f257e8296d78e921a6dccd25a275a999b9 /README.md
parent3531853b2c2248888722ac3a390fa8ef36f96c9c (diff)
Bash `enter_accept` best effort fixes (#1384)
* fix(bash): Rewrite the enter_accept integration * docs(bash): Update bash installation instructions with warnings
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 16 insertions, 2 deletions
diff --git a/README.md b/README.md
index 513d9bd48..589713672 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
```