From 919a310340ac49d590f3d0ab66e92e74cd3dc287 Mon Sep 17 00:00:00 2001 From: gotbletu Date: Sat, 6 Feb 2016 14:25:42 -0800 Subject: [PATCH] cheat autocomplete --- cheat_zsh_autocomplete.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cheat_zsh_autocomplete.txt diff --git a/cheat_zsh_autocomplete.txt b/cheat_zsh_autocomplete.txt new file mode 100644 index 0000000..f496f53 --- /dev/null +++ b/cheat_zsh_autocomplete.txt @@ -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 +