[med-svn] r18089 - in trunk/packages/phylip/trunk/debian: . bash_completion

Andreas Tille tille at moszumanska.debian.org
Mon Sep 22 14:36:27 UTC 2014


Author: tille
Date: 2014-09-22 14:36:26 +0000 (Mon, 22 Sep 2014)
New Revision: 18089

Added:
   trunk/packages/phylip/trunk/debian/bash_completion/
   trunk/packages/phylip/trunk/debian/bash_completion/phylip
Log:
Add bash_completion



Added: trunk/packages/phylip/trunk/debian/bash_completion/phylip
===================================================================
--- trunk/packages/phylip/trunk/debian/bash_completion/phylip	                        (rev 0)
+++ trunk/packages/phylip/trunk/debian/bash_completion/phylip	2014-09-22 14:36:26 UTC (rev 18089)
@@ -0,0 +1,17 @@
+_phylip()
+{
+  local cur prev opts
+  COMPREPLY=()
+  cur="${COMP_WORDS[COMP_CWORD]}"
+  prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+  opts=$(ls /usr/lib/phylip/bin)
+
+  case $prev in
+      phylip)
+          COMPREPLY=( $(compgen -f -W "${opts}" -- "$cur") )
+          ;;
+  esac
+  return 0
+}
+complete -F _phylip -o default phylip




More information about the debian-med-commit mailing list