From 3d805787d0e61caa9266755c84f4b75b38e13591 Mon Sep 17 00:00:00 2001 From: Rolf Schroeder Date: Thu, 12 Feb 2015 08:47:05 +0100 Subject: [PATCH] Just autocomplete with files all the time --- plugins/samtools/_samtools | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugins/samtools/_samtools b/plugins/samtools/_samtools index 0a62e2b00..ddb002ae2 100644 --- a/plugins/samtools/_samtools +++ b/plugins/samtools/_samtools @@ -32,14 +32,8 @@ case $state in "bamshuf[shuffle and group alignments by name]" ret=0 ;; - args) - case $line[1] in - view|tview) - _files=(`find . -name \*.sam -o -name \*.bam | grep '\./[^/]*am' | sed 's/\.\///'`) - [[ -n "$_files" ]] && _values 'configs' $_files - ret=0 - ;; - esac + *) + _files ;; esac