shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Resolving path extension

Open kid-gorgeous opened this issue 2 years ago • 2 comments

Hello,

I've updated and installed Shell_GPT, imported my api key, and ran tests just to make sure that OpenAI establishes a connection. But unfortunately I run into a problem when I restart my terminal. It requires my to export my path each time using the command

export "/Users/<user>/Library/Python/3.11/bin/:$PATH"

I was hoping to resolve the path issues so that I didn't have to restore it each time.

kid-gorgeous avatar Feb 20 '23 15:02 kid-gorgeous

You can add a path in shell runtime configuration file. If you are using bash or zsh, try:

echo "PATH=$PATH:/Users/<user>/Library/Python/3.11/bin/" >> "$HOME/.$(basename $SHELL)rc"

TheR1D avatar Feb 20 '23 22:02 TheR1D

Awesome, this fixed it right up! Thanks!

kid-gorgeous avatar Feb 21 '23 01:02 kid-gorgeous