diff options
| author | sigoden <sigoden@gmail.com> | 2024-02-26 11:28:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 11:28:25 +0800 |
| commit | ff0ec15e065957a0da197711f6e3adfb9992325a (patch) | |
| tree | 9d0d588d8365b6c850072dd69532995c63b001e7 /README.md | |
| parent | aec1b707afb1cf80ff4eb8591e1cd050fffe47b0 (diff) | |
| download | aichat-ff0ec15e065957a0da197711f6e3adfb9992325a.tar.gz | |
feat: add shell integration (#323)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -394,6 +394,22 @@ We can also pipe the output of aichat which will disable interactive mode. aichat -e find all json files in current folder | pbcopy ``` +### Shell integration + +This is a **very handy feature**, which allows you to use `aichat` shell completions directly in your terminal, without the need to type `aichat` with prompt and arguments. This feature puts `aichat` completions directly into terminal buffer (input line), allowing for immediate editing of suggested commands. + + + +To install shell integration, run the following code: + +```sh +sh_ext=bash # possible values: bash, fish, zsh, ps1 +curl -o aichat-integration.$sh_ext https://raw.githubusercontent.com/sigoden/aichat/main/scripts/integration.$sh_ext +. aichat-integration.$sh_ext +``` + +After that restart your shell. You can invoke the completion with `alt+e` hotkey. + ## License Copyright (c) 2023-2024 aichat-developers. |
