mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 07:21:36 +01:00
integrate with bash complete for autocompletion
This commit is contained in:
parent
e5114a3e76
commit
201cd1d629
6
scripts/cheat-autocompletion.bash
Executable file
6
scripts/cheat-autocompletion.bash
Executable file
@ -0,0 +1,6 @@
|
||||
function _cheat_autocomplete {
|
||||
wdlist='cheat -l|awk "{print $1}"'
|
||||
COMPREPLY=(`compgen -W "$wdlist"`)
|
||||
}
|
||||
|
||||
complete -F _cheat_autocomplete cheat
|
Loading…
Reference in New Issue
Block a user