summaryrefslogtreecommitdiff
path: root/completions/cvsps
diff options
context:
space:
mode:
Diffstat (limited to 'completions/cvsps')
-rw-r--r--completions/cvsps28
1 files changed, 14 insertions, 14 deletions
diff --git a/completions/cvsps b/completions/cvsps
index 8b986f57..64dab54f 100644
--- a/completions/cvsps
+++ b/completions/cvsps
@@ -7,43 +7,43 @@ _cvsps()
case $prev in
-h|-z|-f|-d|-l|--diff-opts|--debuglvl)
- return 0
+ return
;;
-s)
- COMPREPLY=( $( compgen -W "$( cvsps 2>/dev/null |
+ COMPREPLY=( $( compgen -W "$( $1 2>/dev/null |
awk '/^PatchSet:?[ \t]/ { print $2 }' )" -- "$cur" ) )
- return 0
+ return
;;
-a)
- COMPREPLY=( $( compgen -W "$( cvsps 2>/dev/null |
+ COMPREPLY=( $( compgen -W "$( $1 2>/dev/null |
awk '/^Author:[ \t]/ { print $2 }' )" -- "$cur" ) )
- return 0
+ return
;;
-b)
- COMPREPLY=( $( compgen -W "$( cvsps 2>/dev/null |
+ COMPREPLY=( $( compgen -W "$( $1 2>/dev/null |
awk '/^Branch:[ \t]/ { print $2 }' )" -- "$cur" ) )
- return 0
+ return
;;
-r)
- COMPREPLY=( $( compgen -W "$( cvsps 2>/dev/null |
+ COMPREPLY=( $( compgen -W "$( $1 2>/dev/null |
awk '/^Tag:[ \t]+[^(]/ { print $2 }' )" -- "$cur" ) )
- return 0
+ return
;;
-p)
_filedir -d
- return 0
+ return
;;
--test-log)
_filedir
- return 0
+ return
;;
-Z)
COMPREPLY=( $( compgen -W '{1..9}' -- "$cur" ) )
- return 0
+ return
;;
--root)
_xfunc cvs _cvs_roots
- return 0
+ return
;;
esac
@@ -55,4 +55,4 @@ _cvsps()
} &&
complete -F _cvsps cvsps
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh