aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-06 18:09:17 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-05-06 18:09:17 -0500
commit883fe86bb9be501df1dfec94fd6a0fc81b9a8602 (patch)
tree4c7285e575b956bfc6f3aa95407f7ddd96b157ef
parent569c9a18a34793f46ed0d11e92b4f9c1848aa6ba (diff)
downloadgpt-chat-cli-883fe86bb9be501df1dfec94fd6a0fc81b9a8602.tar.xz
gpt-chat-cli-883fe86bb9be501df1dfec94fd6a0fc81b9a8602.zip
Fix cmd function
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index ec929e4..35096be 100644
--- a/README.md
+++ b/README.md
@@ -237,12 +237,12 @@ function cmd {
local prompt=""
- prompt="${prompt}Suggest a command to be run in the $shell to accomplish the following task:\n"
- prompt="${prompt}$request\n"
- prompt="${prompt}Please output the command and a short description\n"
+ prompt="${prompt}Suggest a command to be run in the $shell to accomplish the following task:\n\n"
+ prompt="${prompt}$request\n\n"
+ prompt="${prompt}Please output the command and a short description\n\n"
if [ -n "${os}" ] || [ -n "${kernel}" ]; then
- prompt="${prompt}Here is some additional info about the system:${os}${kernel}"
+ prompt="${prompt}Here is some additional info about the system:\n\n${os}${kernel}"
fi
printf "$prompt" | gpt-chat-cli