Skip to content

Unable to autocomplete the "asp" command #418

Answered by Aloxaf
TaiSHiNet asked this question in Q&A
Discussion options

You must be logged in to vote

The aws plugin utilizes zsh's outdated compctl command, which is not supported by fzf-tab.

https://github.com/ohmyzsh/ohmyzsh/blob/c891b7e6ada5427f4c8cca05c8ed1ae33cb49943/plugins/aws/aws.plugin.zsh#L255

However, considering that complex compctl parameters are not used by the code above, you may want to try the following script:

_aws_asp() {
  local -a reply
  _aws_profiles
  compadd -a reply
}

compdef _aws_asp asp acp aws_change_access_key

Added _fzf_complete_asp and it works, but it doesn't auto complete/tab the unambiguous prefix (which does work with this plugin with tools like awscli)

Sorry, but what's _fzf_complete_asp?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TaiSHiNet
Comment options

Answer selected by TaiSHiNet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants