Skip to content

Commit

Permalink
Remove forgotten and failed experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-sol committed Jun 18, 2023
1 parent 13c2a8b commit 96bbff1
Showing 1 changed file with 2 additions and 28 deletions.
30 changes: 2 additions & 28 deletions completions/zsh/brew-bundle
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,6 @@ __brew_bundle_commands() {
_describe -t commands 'commands' commands
}

__brew_bundle_expand_alias()
{
local command_or_alias="$1"
local -A aliases
aliases=(
setup install
set install
inst install
ins install
i install
du dump
d dump
clean cleanup
cl cleanup
rm cleanup
ch check
ls list
l list
ex exec
e exec
)
command="${aliases[$command_or_alias]:-$command_or_alias}"
print "${command}"
}

_brew_bundle_install() {
_arguments \
'--file[read the Brewfile from this location. Use --file=- to pipe to stdin/stdout]' \
Expand Down Expand Up @@ -115,9 +90,8 @@ _brew_bundle() {
command)
__brew_bundle_commands ;;
args)
local raw_command command completion_func
raw_command="${line[1]}"
command=$(__brew_bundle_expand_alias "$raw_command")
local command completion_func
command="${line[1]}"
completion_func="_brew_bundle_${command//-/_}"

_call_function ret "${completion_func}" && return ret
Expand Down

0 comments on commit 96bbff1

Please sign in to comment.