|
|
|
@ -118,7 +118,7 @@ apt_pref_compdef() { |
|
|
|
local f fb |
|
|
|
local f fb |
|
|
|
f="_apt_pref_${2}" |
|
|
|
f="_apt_pref_${2}" |
|
|
|
|
|
|
|
|
|
|
|
fb="function ${f}() { |
|
|
|
eval "function ${f}() { |
|
|
|
shift words; |
|
|
|
shift words; |
|
|
|
service=\"\$apt_pref\"; |
|
|
|
service=\"\$apt_pref\"; |
|
|
|
words=(\"\$apt_pref\" '$2' \$words); |
|
|
|
words=(\"\$apt_pref\" '$2' \$words); |
|
|
|
@ -126,9 +126,6 @@ apt_pref_compdef() { |
|
|
|
test \"\${apt_pref}\" = 'aptitude' && _aptitude || _apt |
|
|
|
test \"\${apt_pref}\" = 'aptitude' && _aptitude || _apt |
|
|
|
}" |
|
|
|
}" |
|
|
|
|
|
|
|
|
|
|
|
eval "$fb" |
|
|
|
|
|
|
|
echo "$fb" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compdef "$f" "$1" |
|
|
|
compdef "$f" "$1" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|