From d275c33632271bf9cdbc01ef005deb9ff851370b Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 2 Mar 2024 08:07:06 +0000 Subject: [PATCH] chore: move integration scripts --- README.md | 15 +++------------ scripts/{ => shell-integration}/integration.bash | 0 scripts/{ => shell-integration}/integration.fish | 0 scripts/{ => shell-integration}/integration.ps1 | 0 scripts/{ => shell-integration}/integration.zsh | 0 5 files changed, 3 insertions(+), 12 deletions(-) rename scripts/{ => shell-integration}/integration.bash (100%) rename scripts/{ => shell-integration}/integration.fish (100%) rename scripts/{ => shell-integration}/integration.ps1 (100%) rename scripts/{ => shell-integration}/integration.zsh (100%) diff --git a/README.md b/README.md index 9048e91..3e8b67a 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Download it from [GitHub Releases](https://github.com/sigoden/aichat/releases), - VertexAI (paid, vision) - Ernie (paid) - Qianwen (paid, vision) -- Support [REPL Mode](#chat-repl) and [Command Mode][#command] +- Support [REPL Mode](#chat-repl) and [Command Mode](#command) - Support [Roles](#roles) - Support context-aware conversation (session) - Support multimodal models (vision) @@ -62,7 +62,7 @@ Download it from [GitHub Releases](https://github.com/sigoden/aichat/releases), - Save messages/sessions - Stream/Non-stream output - With proxy -- With Dark/light theme +- With dark/light theme ## Config @@ -399,16 +399,7 @@ This is a **very handy feature**, which allows you to use `aichat` shell complet ![aichat-integration](https://github.com/sigoden/aichat/assets/4012553/873ebf23-226c-412e-a34f-c5aaa7017524) -To install shell integration, run the following code: - -```sh -sh_ext=bash # possible values: bash, fish, zsh, ps1 -sh_url=https://raw.githubusercontent.com/sigoden/aichat/main/scripts/integration.$sh_ext -curl -o aichat-integration.$sh_ext $sh_url -source aichat-integration.$sh_ext -``` - -After that restart your shell. You can invoke the completion with `alt+e` hotkey. +To install shell integration, go to [./scripts/shell-integration](./scripts/shell-integration/) to download the script and source the script in rc file. After that restart your shell. You can invoke the completion with `alt+e` hotkey. ## License diff --git a/scripts/integration.bash b/scripts/shell-integration/integration.bash similarity index 100% rename from scripts/integration.bash rename to scripts/shell-integration/integration.bash diff --git a/scripts/integration.fish b/scripts/shell-integration/integration.fish similarity index 100% rename from scripts/integration.fish rename to scripts/shell-integration/integration.fish diff --git a/scripts/integration.ps1 b/scripts/shell-integration/integration.ps1 similarity index 100% rename from scripts/integration.ps1 rename to scripts/shell-integration/integration.ps1 diff --git a/scripts/integration.zsh b/scripts/shell-integration/integration.zsh similarity index 100% rename from scripts/integration.zsh rename to scripts/shell-integration/integration.zsh