We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f13f0a + d72b052 commit e777711Copy full SHA for e777711
chatgpt.sh
@@ -9,6 +9,8 @@ COMMAND_GENERATION_PROMPT="Return a one-line bash command with the functionality
9
10
CHATGPT_CYAN_LABEL="\n\033[36mchatgpt \033[0m"
11
12
+PROCESSING_LABEL="\033[90mprocessing... \033[0m"
13
+
14
# error handling function
15
# $1 should be the response body
16
handle_error() {
@@ -236,6 +238,9 @@ while $running; do
236
238
if [ -z "$pipe_mode_prompt" ]; then
237
239
echo -e "\nEnter a prompt:"
240
read -e prompt
241
+ if [ "$prompt" != "exit" ] && [ "$prompt" != "q" ]; then
242
+ echo -e $PROCESSING_LABEL
243
+ fi
244
else
245
# set vars for pipe mode
246
prompt=${pipe_mode_prompt}
0 commit comments