mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
Address common issues with load path configuration in docs (#5356)
* Add instructions on how to add pyenv to load path * Support zsh in pyenv load path instructions * Make instructions for Mac work when shell-specific profile file exists * Includes are weird... * . * Fix my misunderstanding of what files zsh sources * Operator precedence, or something like that
This commit is contained in:
@@ -22,11 +22,18 @@ one-by-one:
|
||||
.. prompt:: bash
|
||||
|
||||
brew install python@3.9
|
||||
echo 'export PATH="$(brew --prefix)/opt/python@3.9/bin:$PATH"' >> ~/.profile
|
||||
source ~/.profile
|
||||
brew install git
|
||||
brew install --cask adoptopenjdk/openjdk/adoptopenjdk11
|
||||
|
||||
By default, Python installed through Homebrew is not added to the load path.
|
||||
To fix this, you should run these commands:
|
||||
|
||||
.. prompt:: bash
|
||||
|
||||
profile=$([ -n "$ZSH_VERSION" ] && echo ~/.zprofile || ([ -f ~/.bash_profile ] && echo ~/.bash_profile || echo ~/.profile))
|
||||
echo 'export PATH="$(brew --prefix)/opt/python@3.9/bin:$PATH"' >> "$profile"
|
||||
source "$profile"
|
||||
|
||||
.. Include common instructions:
|
||||
|
||||
.. include:: _includes/create-env-with-venv.rst
|
||||
|
||||
Reference in New Issue
Block a user