diff --git a/scripts/cheat-autocompletion.bash b/scripts/cheat-autocompletion.bash new file mode 100755 index 0000000..4d340d1 --- /dev/null +++ b/scripts/cheat-autocompletion.bash @@ -0,0 +1,6 @@ +function _cheat_autocomplete { + wdlist='cheat -l|awk "{print $1}"' + COMPREPLY=(`compgen -W "$wdlist"`) +} + +complete -F _cheat_autocomplete cheat