mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-11 14:05:29 +00:00
snakemake autocompletion
This commit is contained in:
10
profiles/base/.functions
Normal file
10
profiles/base/.functions
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
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'
|
||||||
|
}
|
||||||
@@ -18,6 +18,7 @@ if [ -f "$HOME/.environment.local" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
source $HOME/.aliases
|
source $HOME/.aliases
|
||||||
|
source $HOME/.functions
|
||||||
|
|
||||||
if [ -z "$GMXRC" ]; then
|
if [ -z "$GMXRC" ]; then
|
||||||
GMXRC="/opt/gromacs-2018/bin/GMXRC"
|
GMXRC="/opt/gromacs-2018/bin/GMXRC"
|
||||||
|
|||||||
Reference in New Issue
Block a user