mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
link python executable on macOS if needed
This commit is contained in:
parent
b08bfdca50
commit
784bbf241e
1 changed files with 6 additions and 0 deletions
|
@ -55,6 +55,12 @@ if [[ $(uname) == *"Darwin"* ]]; then
|
|||
if [ $(uname -a | grep arm > /dev/null ; echo $?) -eq 0 ]; then
|
||||
# On apple silicon: brew default installs here
|
||||
export PATH=/opt/homebrew/bin:$PATH
|
||||
else
|
||||
if [ ! -f "/usr/local/bin/python" ]; then
|
||||
# this will link python3.11 to python which will fix poetry issues
|
||||
# ref: https://stackoverflow.com/a/74582011/3547184
|
||||
ln -s -f /usr/local/bin/python3.11 /usr/local/bin/python
|
||||
fi
|
||||
fi
|
||||
|
||||
# Load GNU sed, called gsed, instead of MacOS's POSIX sed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue