[med-svn] [SCM] BEDtools branch, master, updated. debian/2.16.1-1-18-g820c211

Charles Plessy plessy at debian.org
Sun Nov 4 09:14:02 UTC 2012


The following commit has been merged in the master branch:
commit 422cd348e637895e5022cb6e14b5e7e067c76f61
Author: Charles Plessy <plessy at debian.org>
Date:   Sun Nov 4 17:57:35 2012 +0900

    Bash completion for BEDTools.
    
    Also available at https://github.com/arq5x/bedtools.

diff --git a/debian/bash_completion/bedtools b/debian/bash_completion/bedtools
new file mode 100644
index 0000000..da03d71
--- /dev/null
+++ b/debian/bash_completion/bedtools
@@ -0,0 +1,21 @@
+_bedtools()
+{
+  local cur prev opts
+  COMPREPLY=()
+  cur="${COMP_WORDS[COMP_CWORD]}"
+  prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+  opts="intersect window closest coverage map genomecov merge cluster
+        complement subtract slop flank sort random shuffle annotate multiinter
+        unionbedg pairtobed pairtopair bamtobed bedtobam bamtofastq bedpetobam
+        bed12tobed6 getfasta maskfasta nuc multicov tag jaccard overlap igv
+        links makewindows groupby expand"
+
+  case $prev in
+      bedtools)
+          COMPREPLY=( $(compgen -f -W "${opts}" -- "$cur") )
+          ;;
+  esac
+  return 0
+}
+complete -F _bedtools -o default bedtools
diff --git a/debian/install b/debian/install
index 54566b2..d96949f 100644
--- a/debian/install
+++ b/debian/install
@@ -1,3 +1,4 @@
 bin/*	usr/bin
 genomes	usr/share/bedtools
 test/*	usr/share/bedtools/test
+debian/bash_completion/*	etc/bash_completion.d

-- 
Suite of utilities for comparing genomic features.



More information about the debian-med-commit mailing list