diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-06T17·01+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-06T17·01+0000 |
commit | abcdf22fb4455467544d11d7ba2b60b3f1210c4c (patch) | |
tree | 40c82c109c531a4c2067bbc4bb11c3be96515418 /configs/shared/zsh | |
parent | f9be76e67881aabfdafe52ee4738b4515eb3ba65 (diff) |
Supports autocompletion for Piper
See comment for an explanation about the additions.
Diffstat (limited to 'configs/shared/zsh')
-rw-r--r-- | configs/shared/zsh/.zshrc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/shared/zsh/.zshrc b/configs/shared/zsh/.zshrc index 77525f22ebbb..40ecd44532d6 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 ~<tab>` 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" |