0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 150 forks source link

Replace open command with xdg-open when install runs on linux #33

Closed 0xacx closed 1 year ago

0xacx commented 1 year ago

This PR replaces the open command with xdg-open when the script is installed in Linux systems. This way we can avoid having if branches in the script to check on which OS the script is running to execute the proper command. Addresses issue: https://github.com/0xacx/chatGPT-shell-cli/issues/26