mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-16 08:58:35 +01:00
9 lines
210 B
Bash
9 lines
210 B
Bash
function _cheat_autocomplete {
|
|
sheets=$(cheat -l | cut -d' ' -f1)
|
|
COMPREPLY=()
|
|
if [ $COMP_CWORD = 1 ]; then
|
|
COMPREPLY=(`compgen -W "$sheets" -- $2`)
|
|
fi
|
|
}
|
|
|
|
complete -F _cheat_autocomplete cheat
|