Setup

Homebrew

Install Homebrew.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/ewilan/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/ewilan/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

Tools

brew install iterm2 fig exa git

Add exa to ~/.zshrc

echo 'alias ls="exa"' >> ~/.zshrc
echo 'alias ll="exa --long --"' >> ~/.zshrc

Rosetta (for Silicon Mac)

sudo softwareupdate --install-rosetta --agree-to-license

Antigen

Install Antigen.

curl -L git.io/antigen > antigen.zsh
mv antigen.zsh .antigen
mkdir ~/.antigen/log
echo 'ANTIGEN_LOG=$HOME/.antigen/log/antigen.log' >> ~/.zshrc
echo 'source $HOME/.antigen/antigen.zsh' >> ~/.zshrc
echo 'antigen use oh-my-zsh' >> ~/.zshrc
echo 'antigen bundle git' >> ~/.zshrc
echo 'antigen bundle pip' >> ~/.zshrc
echo 'antigen bundle command-not-found' >> ~/.zshrc
echo 'antigen bundle zsh-users/zsh-completions' >> ~/.zshrc
echo 'antigen bundle zsh-users/zsh-autosuggestions' >> ~/.zshrc
echo 'antigen bundle zsh-users/zsh-syntax-highlighting' >> ~/.zshrc
echo 'antigen bundle zsh-users/zsh-history-substring-search' >> ~/.zshrc
echo 'antigen bundle lukechilds/zsh-nvm' >> ~/.zshrc
echo 'antigen apply' >> ~/.zshrc

Dock autohide

defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.4; killall Dock

Keyboard

Visual Studio Code

// Place your key bindings in this file to override the defaults
[
  {
    "key": "alt+space",
    "command": "editor.action.triggerSuggest",
    "when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly"
  },
  {
    "key": "alt+space",
    "command": "toggleSuggestionDetails",
    "when": "editorTextFocus && suggestWidgetVisible"
  },
  {
    "key": "ctrl+alt+space",
    "command": "toggleSuggestionFocus",
    "when": "editorTextFocus && suggestWidgetVisible"
  }
]