Replies: 1 comment 2 replies
-
|
Short answer: no :) -- If you mean completion for -- If you mean abbreviation completion, like completion-for-abbr() {
local abbreviation
for abbreviation in $(abbr list-abbreviations); do
alias $abbreviation=$abbreviation
end
}
completion-for-abbror completion-for-abbr() {
local abbreviation
for abbreviation in $(abbr list-abbreviations); do
$abbreviation() {}
end
}
completion-for-abbrin your If it's possible, it would take finessing. Otherwise (and if you simply paste that code into your % abbr myexample="echo my example"
% alias myexample=myexample
% myexam[Trigger completion, select `myexample`][SPACE] # % myexam echo my example |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can't tell if I'm missing something or it's impossible at the moment, but I can't find a way to hook this into completions.
I know it takes a lot of work, so I'm not asking for it to be added, just asking if there's a way to do it that's pre-existing.
thanks!
Beta Was this translation helpful? Give feedback.
All reactions