bash-completion/bash-completion-repomanage
Ville Skyttä 192263e892 - Work around potential login problem in profile.d snippet (#174355).
Sat Nov 26 2005 Ville Skyttä <ville.skytta at iki.fi>
- Don't mark the main source file as %config.
- Make profile.d snippet non-executable (#35714) and noreplace.
- Add mock, plague-client and repomanage completion.
- Allow "cvs stat" completion.
- Macroize trigger creation.
2005-11-28 20:26:32 +00:00

25 lines
529 B
Bash

# bash completion for repomanage -*- sh -*-
_repomanage()
{
local cur prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
case $prev in
-@(h|-help|k|-keep))
return 0
;;
esac
if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '-o --old -n --new -s --space -k --keep \
-c --nocheck -h --help' -- $cur ) )
else
_filedir -d
fi
}
complete -F _repomanage repomanage