about summary refs log tree commit diff
path: root/configs/shared/zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-06T17·01+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-06T17·01+0000
commitabcdf22fb4455467544d11d7ba2b60b3f1210c4c (patch)
tree40c82c109c531a4c2067bbc4bb11c3be96515418 /configs/shared/zsh
parentf9be76e67881aabfdafe52ee4738b4515eb3ba65 (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/.zshrc8
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"