From e319c03a45c367a1d0fc54db80b715a70070d1a3 Mon Sep 17 00:00:00 2001 From: Michael Yockey Date: Fri, 10 Apr 2020 13:09:53 -0400 Subject: [PATCH] Add ZSH completions --- dependencies/homebrew.txt | 5 +++++ zshrc | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/dependencies/homebrew.txt b/dependencies/homebrew.txt index 3c9893f..8ae9a91 100644 --- a/dependencies/homebrew.txt +++ b/dependencies/homebrew.txt @@ -1,2 +1,7 @@ +zsh +zsh-completions +zsh-autosuggestions rbenv nodenv +gnupg +pinentry-mac diff --git a/zshrc b/zshrc index a429208..1e0d168 100644 --- a/zshrc +++ b/zshrc @@ -3,5 +3,20 @@ eval "$(nodenv init -)" source $INSTALL_DIR/packages/geometry/geometry.zsh +if type brew &>/dev/null; then + FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH + + autoload -Uz compinit + compinit +fi + +source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh + +typeset -U path cdpath fpath setopt auto_cd -cdpath=($HOME/Projects) +cdpath=($HOME/src) + +zstyle ':completion:*' group-name '' +zstyle ':completion:*:descriptions' format %d + +export GPG_TTY=$(tty)