mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
remove the title as cheat -l lists the title as well.
This commit is contained in:
parent
33e33dc7b7
commit
749173f1f6
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
function _cheat_autocomplete {
|
function _cheat_autocomplete {
|
||||||
sheets=$(cheat -l | cut -d' ' -f1)
|
sheets=$(cheat -l | sed -n '2,$p'|cut -d' ' -f1)
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
if [ $COMP_CWORD = 1 ]; then
|
if [ $COMP_CWORD = 1 ]; then
|
||||||
COMPREPLY=(`compgen -W "$sheets" -- $2`)
|
COMPREPLY=(`compgen -W "$sheets" -- $2`)
|
||||||
|
|
Loading…
Reference in a new issue