Skip to content

Commit b5ddd80

Browse files
authored
Merge pull request #316 from unixorn/document-zqs-compdef-as
Document `zqs-compdef-as`
2 parents bb39b5f + 3cac37e commit b5ddd80

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- [Behavior toggles](#behavior-toggles)
2626
- [zqs](#zqs)
2727
- [zqs check-for-updates](#zqs-check-for-updates)
28+
- [zqs-compdef-as](#zqs-compdef-as)
2829
- [zqs disable-bindkey-handling](#zqs-disable-bindkey-handling)
2930
- [zqs disable-1password-agent](#zqs-disable-1password-agent)
3031
- [zqs enable-1password-agent](#zqs-enable-1password-agent)
@@ -251,6 +252,14 @@ As of 2021-11-13, I've added a `zqs` command to start exposing some of the confi
251252

252253
Updates the quickstart kit if it has been longer than seven days since the last update.
253254

255+
##### zqs-compdef-as
256+
257+
Makes it simpler to use one command's completions for another command too.
258+
259+
Usage: `zqs-compdef-as original_command target_command`
260+
261+
Example: To make `z.lua` use the same completions as `cd`, run `zqs-compdef-as cd _zlua`
262+
254263
##### zqs disable-bindkey-handling
255264

256265
Disable `bindkey` setup and alias expansion in the quickstart `.zshrc` so people can use plugins like [globalias](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/globalias) to handle it instead.

0 commit comments

Comments
 (0)