Files
dotfiles/profiles/base/.functions
2019-03-25 08:16:45 +01:00

10 lines
253 B
Plaintext

sm_autocomplete() {
# make zsh emulate bash if necessary
if [[ -n "$ZSH_VERSION" ]]; then
autoload bashcompinit
bashcompinit
fi
snakemake_options=$(snakemake --snakefile Snakefile --list)
complete -W "${snakemake_options}" 'snakemake'
}