in your home.
${HOME}/.bash_completion
For example, you can write your own Bash Completion for samtools, bwa or your favourite tool by adding the following line in
"${HOME}/.bash_completion"
:
complete -f -X '!*.@(bam|sam|fasta|fa|fa.gz|fastq.gz|fasta.gz)' samtools bwa
Open a new bash and type:
$ samtools index <tab>
myfile.fastq.gz sequence.fasta
Pierre
Ha, that's clever. Thanks for passing this on.
ReplyDeletegreat to know, I'm now using it too
ReplyDelete