Sample bash completion rules for redo targets.
This commit is contained in:
parent
7142c342ae
commit
fa4b64285d
1 changed files with 12 additions and 0 deletions
12
contrib/bash_completion.d/redo
Normal file
12
contrib/bash_completion.d/redo
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
_redo()
|
||||
{
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
|
||||
local targets=$(for t in `ls *.do | sed 's/\.do$//'`; do echo ${t}; done)
|
||||
|
||||
COMPREPLY=($(compgen -W "${targets}" $cur))
|
||||
}
|
||||
|
||||
complete -F _redo redo
|
||||
Loading…
Add table
Add a link
Reference in a new issue