Skip to content

Commit

Permalink
fix(completions): Remove asterisk from versions in Bash completions
Browse files Browse the repository at this point in the history
  • Loading branch information
benblank committed Jul 28, 2024
1 parent 311a40e commit 6138625
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions completions/asdf.bash
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ _asdf() {
uninstall | where | reshim)
if [[ " $plugins " == *" $prev "* ]]; then
local versions
versions=$(asdf list "$prev" 2>/dev/null)
# The first two columns are either blank or contain the "current" marker.
versions=$(asdf list "$prev" 2>/dev/null | colrm 1 2)
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "$versions" -- "$cur"))
else
Expand All @@ -67,7 +68,8 @@ _asdf() {
local | global | shell)
if [[ " $plugins " == *" $prev "* ]]; then
local versions
versions=$(asdf list "$prev" 2>/dev/null)
# The first two columns are either blank or contain the "current" marker.
versions=$(asdf list "$prev" 2>/dev/null | colrm 1 2)
versions+=" system"
# shellcheck disable=SC2207
COMPREPLY=($(compgen -W "$versions" -- "$cur"))
Expand Down

0 comments on commit 6138625

Please sign in to comment.