Skip to content

Commit f49ec79

Browse files
authored
Merge pull request #63 from emirkmo/add_zshrc
Add .zshrc to install script, since it was missing.
2 parents 2bd33ab + 1b35224 commit f49ec79

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ if [ "$answer" == "Yes" ] || [ "$answer" == "yes" ] || [ "$answer" == "y" ] || [
6262
fi
6363
echo "OpenAI key and chatgpt path added to ~/.zprofile"
6464
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
6573
# bash profile mac
6674
elif [ -f ~/.bash_profile ]; then
6775
echo "export OPENAI_KEY=$key" >>~/.bash_profile

0 commit comments

Comments
 (0)