Merge pull request #63 from emirkmo/add_zshrc

Add .zshrc to install script, since it was missing.
improve-UI
0xacx 1 year ago committed by GitHub
commit f49ec79a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      install.sh

@ -62,6 +62,14 @@ if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [
fi
echo "OpenAI key and chatgpt path added to ~/.zprofile"
source ~/.zprofile
# zshrc profile, used for interactive shells in linux
elif [ -f ~/.zshrc ]; then
echo "export OPENAI_KEY=$key" >>~/.zshrc
if [[ ":$PATH:" == *":/usr/local/bin:"* ]]; then
echo 'export PATH=$PATH:/usr/local/bin' >>~/.zshrc
fi
echo "OpenAI key and chatgpt path added to ~/.zshrc"
source ~/.zshrc
# bash profile mac
elif [ -f ~/.bash_profile ]; then
echo "export OPENAI_KEY=$key" >>~/.bash_profile

Loading…
Cancel
Save