From abcdf22fb4455467544d11d7ba2b60b3f1210c4c Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 6 Mar 2019 17:01:42 +0000 Subject: [PATCH] Supports autocompletion for Piper See comment for an explanation about the additions. --- configs/shared/zsh/.zshrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc index 77525f22e..40ecd4453 100644 --- a/configs/shared/zsh/.zshrc +++ b/configs/shared/zsh/.zshrc @@ -30,6 +30,14 @@ source "$(fzf-share)/key-bindings.zsh" # Configure fasd eval "$(fasd --init auto)" +# Configure g4 with zsh +source /etc/bash_completion.d/g4d +# the above line slows tab-completion down dramatically because it attemtps to +# autocomplete for the 600k+ users found in `compgen -u`. Below is a fix which +# also restores the function of `cd ~` to display only ZSH Named +# Directories. +zstyle ':completion:*' users root $USER + # use full path instead of $DOTFILES, since DOTFILES is set herein DOTFILES="$HOME/programming/dotfiles" source "$DOTFILES/configs/shared/zsh/variables.zsh"