We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bd33ab + 1b35224 commit f49ec79Copy full SHA for f49ec79
install.sh
@@ -62,6 +62,14 @@ if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [
62
fi
63
echo "OpenAI key and chatgpt path added to ~/.zprofile"
64
source ~/.zprofile
65
+ # zshrc profile, used for interactive shells in linux
66
+ elif [ -f ~/.zshrc ]; then
67
+ echo "export OPENAI_KEY=$key" >>~/.zshrc
68
+ if [[ ":$PATH:" == *":/usr/local/bin:"* ]]; then
69
+ echo 'export PATH=$PATH:/usr/local/bin' >>~/.zshrc
70
+ fi
71
+ echo "OpenAI key and chatgpt path added to ~/.zshrc"
72
+ source ~/.zshrc
73
# bash profile mac
74
elif [ -f ~/.bash_profile ]; then
75
echo "export OPENAI_KEY=$key" >>~/.bash_profile
0 commit comments