mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2025-02-22 18:55:29 +00:00
Merge pull request #30 from 0xacx/allow-input-editing
Allow input editing
This commit is contained in:
commit
97543d1a1d
@ -236,7 +236,7 @@ while $running; do
|
|||||||
|
|
||||||
if [ -z "$pipe_mode_prompt" ]; then
|
if [ -z "$pipe_mode_prompt" ]; then
|
||||||
echo -e "\nEnter a prompt:"
|
echo -e "\nEnter a prompt:"
|
||||||
read prompt
|
read -e prompt
|
||||||
else
|
else
|
||||||
# set vars for pipe mode
|
# set vars for pipe mode
|
||||||
prompt=${pipe_mode_prompt}
|
prompt=${pipe_mode_prompt}
|
||||||
@ -258,7 +258,7 @@ while $running; do
|
|||||||
rm temp_image.png
|
rm temp_image.png
|
||||||
else
|
else
|
||||||
echo "Would you like to open it? (Yes/No)"
|
echo "Would you like to open it? (Yes/No)"
|
||||||
read answer
|
read -e answer
|
||||||
if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [ "$answer" == "Y" ] || [ "$answer" == "ok" ]; then
|
if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [ "$answer" == "Y" ] || [ "$answer" == "ok" ]; then
|
||||||
open "${image_url}"
|
open "${image_url}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user