mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2024-11-24 11:25:31 +00:00
Update chatgpt.sh
Add support for kitty icat image preview on kitty terminal.
This commit is contained in:
parent
a6f6c20022
commit
3860335207
@ -255,6 +255,10 @@ while $running; do
|
||||
curl -sS $image_url -o temp_image.png
|
||||
imgcat temp_image.png
|
||||
rm temp_image.png
|
||||
elif [[ "$TERM" == "xterm-kitty" ]]; then
|
||||
curl -sS $image_url -o temp_image.png
|
||||
kitty +kitten icat temp_image.png
|
||||
rm temp_image.png
|
||||
else
|
||||
echo "Would you like to open it? (Yes/No)"
|
||||
read -e answer
|
||||
|
Loading…
Reference in New Issue
Block a user