$ curl -L git.io/antigen > ~/antigen.zsh
# Use antigen
source $HOME/antigen.zsh
# Use Oh-My-Zsh
antigen use oh-my-zsh
# Set theme
# antigen theme robbyrussell
# antigen theme romkatv/powerlevel10k
# https://github.com/zsh-users/antigen/issues/675#issuecomment-452764451
THEME=romkatv/powerlevel10k
antigen list | grep $THEME; if [ $? -ne 0 ]; then antigen theme $THEME; fi
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Set plugins (plugins not part of Oh-My-Zsh can be installed using githubusername/repo)
antigen bundle git
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-syntax-highlighting
# https://github.com/zsh-users/zsh-syntax-highlighting/issues/295#issuecomment-214581607
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
# Apply changes
antigen apply
$ brew install duti
$ duti -s com.microsoft.VSCode public.plain-text all