Bash completetions: a little cleaning up
This commit is contained in:
parent
6d95cd5dd3
commit
a2f40fbf67
@ -10,15 +10,14 @@ _gramps()
|
|||||||
return 0
|
return 0
|
||||||
elif [[ ${cur} == --open ]] ; then
|
elif [[ ${cur} == --open ]] ; then
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
local names=($( ./Gramps.py -l | grep \" | cut -d\ -f4- ))
|
local names=($( gramps -l | grep \" | cut -d\ -f4- ))
|
||||||
COMPREPLY=( $(compgen --W "${names[*]}" -- ${cur}) )
|
COMPREPLY=( $(compgen --W "${names[*]}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
local names=($( ./Gramps.py -l | grep \" | cut -d\ -f4- ))
|
local names=($( gramps -l | grep \" | cut -d\ -f4- ))
|
||||||
COMPREPLY=( $(compgen -W "${names[*]}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${names[*]}" -- ${cur}) )
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
complete -F _gramps gramps
|
complete -F _gramps gramps
|
||||||
complete -F _gramps ./Gramps.py
|
|
||||||
|
Loading…
Reference in New Issue
Block a user