Skip to content
Discussion options

You must be logged in to vote

Specs still have some rough edges so a couple of edge cases might not work.

This seems to be fine though:

name: chdir
flags:
  --flag=: The flag to complete
completion:
  flag:
    flag: ["$files ||| $chdir(${HOME})"]
  • = flag suffix to signal that it takes a value
  • $files plural
  • ${ENV_NAME} curly braces so that it isn't mistaken as macro

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SuniRein
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