mirror of
https://github.com/cheat/cheat.git
synced 2025-09-08 13:02:54 +02:00
remove the title as cheat -l lists the title as well.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
function _cheat_autocomplete {
|
||||
sheets=$(cheat -l | cut -d' ' -f1)
|
||||
sheets=$(cheat -l | sed -n '2,$p'|cut -d' ' -f1)
|
||||
COMPREPLY=()
|
||||
if [ $COMP_CWORD = 1 ]; then
|
||||
COMPREPLY=(`compgen -W "$sheets" -- $2`)
|
||||
|
Reference in New Issue
Block a user