mirror of
https://github.com/0xacx/chatGPT-shell-cli.git
synced 2024-11-24 03:15:31 +00:00
Merge pull request #63 from emirkmo/add_zshrc
Add .zshrc to install script, since it was missing.
This commit is contained in:
commit
f49ec79a65
@ -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…
Reference in New Issue
Block a user