mirror of
https://github.com/cheat/cheat.git
synced 2026-06-18 06:17:40 +02:00
integrate with bash complete for autocompletion
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
function _cheat_autocomplete {
|
||||||
|
wdlist='cheat -l|awk "{print $1}"'
|
||||||
|
COMPREPLY=(`compgen -W "$wdlist"`)
|
||||||
|
}
|
||||||
|
|
||||||
|
complete -F _cheat_autocomplete cheat
|
||||||
Reference in New Issue
Block a user