diff --git a/lib/rehash.zsh b/lib/rehash.zsh new file mode 100644 index 000000000..735656c46 --- /dev/null +++ b/lib/rehash.zsh @@ -0,0 +1,10 @@ +#-*- sh -*- + + +## will rehash +_force_rehash() { + (( CURRENT == 1 )) && rehash + return 1 # Because we didn't really complete anything +} + +zstyle ':completion:::::' completer _force_rehash _complete _approximate \ No newline at end of file