TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.42k stars 742 forks source link

Error: ShellGPT integrations only available for ZSH and Bash. #492

Closed soullessschizo closed 5 months ago

soullessschizo commented 7 months ago

i am running zsh but getting that error.

$SHELL --version zsh 5.8.1 (x86_64-ubuntu-linux-gnu)

echo $SHELL
/usr/bin/zsh

soullessschizo commented 7 months ago

issue was that my zsh is at /usr/bin/zsh, and shell-gpt only checks in /bin/zsh

i fixed it by editing line 76 of .local/lib/python3.10/site-packages/sgpt/utils.py to: if shell == "/usr/bin/zsh":

CrashBandicooch commented 7 months ago

issue was that my zsh is at /usr/bin/zsh, and shell-gpt only checks in /bin/zsh

i fixed it by editing line 76 of .local/lib/python3.10/site-packages/sgpt/utils.py to: if shell == "/usr/bin/zsh":

I had the same issue and this worked for me. Just make sure you're looking in the right location for the file. I had installed sgpt with pipx, so the path to utils.py was different for me.