From 434e8238d8604dd1efcf601867b73ef17d912490 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Tue, 2 Jan 2024 21:35:24 +0900 Subject: feat(bash): provide auto-complete source for ble.sh (#1487) * feat(bash): provide auto-complete source for ble.sh * docs(integration): mention the auto-complete source for ble.sh --- docs/docs/integrations.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs') diff --git a/docs/docs/integrations.md b/docs/docs/integrations.md index 85786357..27983add 100644 --- a/docs/docs/integrations.md +++ b/docs/docs/integrations.md @@ -5,3 +5,18 @@ Atuin automatically adds itself as an [autosuggest strategy](https://github.com/zsh-users/zsh-autosuggestions#suggestion-strategy). If you'd like to override this, add your own config after "$(atuin init zsh)" in your zshrc. + +## ble.sh auto-complete (Bash) + +If ble.sh is available when Atuin's integration is loaded in Bash, Atuin automatically defines and registers an auto-complete source for the autosuggestion feature of ble.sh. + +If you'd like to change the behavior, please overwrite the shell function `ble/complete/auto-complete/source:atuin-history` after `eval "$(atuin init bash)"` in your `.bashrc`. + +If you would not like Atuin's auto-complete source, please add the following setting after `eval "$(atuin init bash)"` in your `.bashrc`: + +```shell +# bashrc (after eval "$(atuin init bash)") + +ble/util/import/eval-after-load core-complete ' + ble/array#remove _ble_complete_auto_source atuin-history' +``` -- cgit v1.3.1