Created
August 31, 2017 06:49
-
-
Save chenglou/03505022bc4598fcb80e523f868b5753 to your computer and use it in GitHub Desktop.
Auto-fu installation instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# npm/make/brew autocompletions are super slow. Disable them so that auto-fu's | |
# completion doesn't trigger for these | |
noopt() {} | |
compdef noopt npm | |
compdef noopt make | |
compdef noopt brew | |
# Fork with cleaned-up readme: | |
# https://github.com/HerringtonDarkholme/auto-fu.zsh | |
# make sure history-substring-match is disabled (crashes window with auto-fu). | |
# auto-fu master currently unstable. Use the `pu` branch instead | |
# git clone https://github.com/HerringtonDarkholme/auto-fu.zsh ~/.auto-fu | |
# cd ~/.auto-fu | |
# git checkout pu | |
if [ -f ~/.auto-fu/auto-fu.zsh ]; then | |
source ~/.auto-fu/auto-fu.zsh | |
function zle-line-init () { | |
auto-fu-init | |
} | |
zle -N zle-line-init | |
zstyle ':completion:*' completer _oldlist _complete | |
fi | |
zstyle ':auto-fu:var' postdisplay $'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment