mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 13:35:30 +00:00
update
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
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'
|
||||
}
|
||||
|
||||
cd() {
|
||||
builtin cd "$@"
|
||||
if [ -f "Snakefile" ]; then
|
||||
sm_autocomplete
|
||||
fi
|
||||
|
||||
}
|
||||
@@ -9,7 +9,6 @@ if [ -f "$HOME/.environment.local" ]; then
|
||||
source $HOME/.environment.local
|
||||
fi
|
||||
source $HOME/.aliases
|
||||
source $HOME/.functions
|
||||
# config specific to this machine
|
||||
if [ -f $HOME/.zshrc_local ]; then
|
||||
source $HOME/.zshrc_local
|
||||
@@ -41,3 +40,7 @@ fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
# snakemake autocomplete
|
||||
if hash snakemake 2>/dev/null; then
|
||||
compdef _gnu_generic snakemake
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user