We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0528383 commit 37ac4f3Copy full SHA for 37ac4f3
etc/bash_completion.d/sambamba
@@ -55,14 +55,20 @@ _sambamba()
55
for word in ${COMP_WORDS[@]}; do
56
if [[ $word == *.bam && $word != "" ]]; then
57
eval abspath=$word
58
- COMPREPLY=( $(sambamba view -H $abspath | grep @SQ | \
+ COMPREPLY=( $(sambamba view -H -t4 $abspath | grep @SQ | \
59
cut -f 2 | cut -f2 -d: 2>/dev/null | grep "^$cur") )
60
break
61
fi
62
done
63
+
64
+ if [[ ${#COMPREPLY[@]} == 0 ]]; then
65
+ compopt +o nospace
66
+ fi
67
68
compopt -o default
69
compopt -o filenames
70
else
71
72
73
74
}
0 commit comments