Skip to content

Commit

Permalink
improve autompletion shell scripts (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Feb 3, 2022
1 parent 58a0bdd commit 60bdc0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libmamba/data/mamba_completion.posix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
R"MAMBARAW(
if [[ -n "$ZSH_VERSION" ]]; then
if [ -n "${ZSH_VERSION:+x}" ]; then
autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit

Expand All @@ -9,7 +9,8 @@ if [[ -n "$ZSH_VERSION" ]]; then
}

complete -o default -F _umamba_zsh_completions micromamba
else
fi
if [ -n "${BASH_VERSION:+x}" ]; then
_umamba_bash_completions()
{
COMPREPLY=($($MAMBA_EXE completer "${COMP_WORDS[@]:1}"))
Expand Down

0 comments on commit 60bdc0d

Please sign in to comment.