Using --wraps to get tab completions on fish shell aliases

When you write a wrapper function in fish, you can use the --wraps flag to inherit tab completions from the wrapped command:
fishCopy
The --wraps='claude' tells fish that claude-minimax is a wrapper around claude. This means that when you type claude-minimax -- and hit , you get the same completion suggestions as claude --. Without it, fish has no way of knowing the relationship and you would get no completions at all.
评论
?
参与讨论