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

Using --wraps to get tab completions on fish shell aliases 图片 1

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.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论