MacOS
Reference Documents
- https://www.bretfisher.com/shell/
- https://gist.github.com/kevin-smets/8568070
- https://github.com/agnoster/agnoster-zsh-theme/issues/123
Install Homebrew
# https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew tap Homebrew/bundle
Install Tools with Homebrew
Brewfile example:
# casks
cask 'dbeaver-community'
cask 'docker'
cask 'iterm2'
# cask 'google-chrome'
cask 'google-drive'
cask 'gpg-suite-no-mail'
cask 'macpass'
cask 'slack'
cask 'spotify'
cask 'visual-studio-code'
cask 'zoom'
# brew
brew 'bat'
brew 'dive'
brew 'duf'
brew 'envchain'
brew 'exa'
brew 'fd'
brew 'go'
brew 'helm'
brew 'jq'
# https://krew.sigs.k8s.io/docs/user-guide/setup/install/
brew 'krew'
brew 'kubernetes-cli'
brew 'kubectx' # kubens and kubectx
tap 'johanhaleby/kubetail'
brew 'kubetail'
brew 'mas'
brew 'skopeo'
brew 'terraform'
brew 'tfenv'
brew 'tldr'
# https://github.com/tmux/tmux/wiki
brew 'tmux'
Install programs:
# Run in the same directory where Brewfile is
brew bundle
Configure iterm2
# import iterm2 profile
- Configure Profile
- Enable setting “use built-in powerline glyphs”
- Select “Solarized Dark” color preset
- Configure Natural Text editing in the key configuration in the profile
Install and configure oh-my-zsh
# https://ohmyz.sh/#install
ZSH="$HOME/.oh-my-zsh" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
- Change Prompt
- Configure theme
- Configure following plugins
- aws
- docker
- git
- go
- kubernetes
- python
- vscode
- Import custom .zshrc from dotfiles repo
- Add zsh alias so when calling cat, bat is called instead.
Install Custom Fonts
# Install Powerline Fonts
# https://github.com/powerline/fonts
git clone https://github.com/powerline/fonts.git $HOME/.fonts --depth=1
cd $HOME/.fonts
./install.sh
cd $HOME
rm -rf $HOME/.fonts
# Install Nerd Fonts
# https://gist.github.com/davidteren/898f2dcccd42d9f8680ec69a3a5d350e
# https://www.nerdfonts.com/
# Configure fonts for vscode terminal
# https://gist.github.com/rodrigoechaide/1c1717c2324a67423c2233f8d588992c
# Configure font for iterm2
# https://webinstall.dev/nerdfont/
# Note: In order the special characters (such as the mac apple and other ones) to be shown properly in SpaceVim iterm2 should use nerd fonts which include powerline fonts.
# Related issue https://github.com/SpaceVim/SpaceVim/issues/2291
- Download and install
Note: To enable icons/glyphs on spacevim and on iTerm, I think that powerline or the font chosen on the iterm profile should be patched in order to add icons to it.
Install and configure spacevim
# https://spacevim.org/quick-start-guide/#linux-and-macos
curl -sLf https://spacevim.org/install.sh | bash
- quick-start-guide
- Customize configuration in ~/.SpaceVim.d/init.toml
- Configure vimdevicons
- Configure spacevim themes/colorschemes
- Try to get fire theme that bretfisher used
Other Configurations
- Configure pipenv environment (store this in a github repo) with useful python libraries and configure zsh to start that venv with each shell. Put in the prompt a very short text indicating that we are inside the venv. Check this github issue
- legacy-linux-commands-alternatives
- Glyphs