Skip to content

Instantly share code, notes, and snippets.

@Tazminia
Last active March 15, 2023 13:56
Show Gist options
  • Save Tazminia/b11edd141e63331ce0274d5e346815b6 to your computer and use it in GitHub Desktop.
Save Tazminia/b11edd141e63331ce0274d5e346815b6 to your computer and use it in GitHub Desktop.
MacOs initial setup (devops)
# install homebrew, check: https://brew.sh/index_fr
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install oh-my-zsh, check: https://ohmyz.sh/#install
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install oh-my-zsh theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# update theme
sed -i.bu 's@ZSH_THEME=.*@ZSH_THEME="powerlevel10k/powerlevel10k"@' ~/.zshrc
# shorten paths on prompt
grep -qxF 'export POWERLEVEL9K_SHORTEN_DIR_LENGTH=2' ~/.zshrc || echo '\nexport POWERLEVEL9K_SHORTEN_DIR_LENGTH=2' >> ~/.zshrc
# For plugins in ~/.zshrc
# plugins=(
# docker
# git
# golang
# kubectl
# kubectx
# poetry
# terraform
# )
# install binaries
brew install iterm2 terraform eul
brew install --cask visual-studio-code --cask brave-browser --cask slack --cask google-cloud-sdk
# install powerfonts, check: https://github.com/powerline/fonts
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh
cd ..
rm -rf fonts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment