cheat autocomplete

This commit is contained in:
gotbletu 2016-02-06 14:25:42 -08:00
parent 57b4633776
commit 919a310340

View File

@ -0,0 +1,9 @@
notes for video: https://www.youtube.com/watch?v=RDsUapd8jVw
# site: https://github.com/chrisallenlane/cheat
# cheat zsh autocomplete; add to ~/.zshrc
_cmpl_cheat() {
reply=($(cheat -l | cut -d' ' -f1))
}
compctl -K _cmpl_cheat cheat