Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
soullessschizo opened this issue Feb 22, 2024 · 2 comments · Fixed by #544
Closed

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

soullessschizo opened this issue Feb 22, 2024 · 2 comments · Fixed by #544

Comments

@soullessschizo
Copy link

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
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants