Skip to content

Instantly share code, notes, and snippets.

@luizomf
Created November 3, 2021 12:33
Show Gist options
  • Save luizomf/2776a135f49322acb2da00deb7a009d6 to your computer and use it in GitHub Desktop.
Save luizomf/2776a135f49322acb2da00deb7a009d6 to your computer and use it in GitHub Desktop.
Comandos para aula de criação de ambiente Python no Mac OS Monterey

After install Mac OS

Download and install Google Chrome and Visual Studio Code:

Open the terminal and run:

xcode-select —install

Install Homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Oh-my-ZSH!

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# Spaceship prompt
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1

ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

# ZSH Syntax highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

# ZSH Autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

# Powerline fonts
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts

Change ~/.zshrc "plugins" and "ZSH_THEME" to be like:

...
ZSH_THEME="spaceship"
...
plugins=(git zsh-syntax-highlighting zsh-autosuggestions)
...

Install iTerm2 and Python 3.10 (optional)

brew install iterm2 python@3.10
brew install python-tk@3.10

export PATH="/usr/local/opt/python@3.10/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/python@3.10/lib"

Configure git:

git config --global user.name 'Luiz Otávio'
git config --global user.email 'otaviomirandabr19@gmail.com'
git config --global init.defaultBranch main
git config pull.rebase false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment