diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-05-06 18:09:17 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-05-06 18:09:17 -0500 |
commit | 883fe86bb9be501df1dfec94fd6a0fc81b9a8602 (patch) | |
tree | 4c7285e575b956bfc6f3aa95407f7ddd96b157ef | |
parent | 569c9a18a34793f46ed0d11e92b4f9c1848aa6ba (diff) | |
download | gpt-chat-cli-883fe86bb9be501df1dfec94fd6a0fc81b9a8602.tar.xz gpt-chat-cli-883fe86bb9be501df1dfec94fd6a0fc81b9a8602.zip |
Fix cmd function
-rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |