aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-05-06 18:09:17 -0500
committerFurkan Sahin <furkan-dev@proton.me>2023-05-06 18:09:17 -0500
commitb0e83140a24e94390edd2995d0090917795be6b0 (patch)
tree54e50212af839b47360005ee503f49d1c281a84f
parent242d5bbfc544d33fa7571a5327093b8207e390d8 (diff)
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