mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +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
|
||||
|
||||
source $HOME/.aliases
|
||||
source $HOME/.functions
|
||||
|
||||
if [ -z "$GMXRC" ]; then
|
||||
GMXRC="/opt/gromacs-2018/bin/GMXRC"
|
||||
|
||||
Reference in New Issue
Block a user