git-project-manager/docs/git-project-manager_completion_zsh.md

56 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

2024-12-27 22:42:44 +00:00
## git-project-manager completion zsh
2024-12-19 19:51:26 +00:00
Generate the autocompletion script for zsh
### Synopsis
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need
to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
2024-12-27 22:42:44 +00:00
source <(git-project-manager completion zsh)
2024-12-19 19:51:26 +00:00
To load completions for every new session, execute once:
#### Linux:
2024-12-27 22:42:44 +00:00
git-project-manager completion zsh > "${fpath[1]}/_git-project-manager"
2024-12-19 19:51:26 +00:00
#### macOS:
2024-12-27 22:42:44 +00:00
git-project-manager completion zsh > $(brew --prefix)/share/zsh/site-functions/_git-project-manager
2024-12-19 19:51:26 +00:00
You will need to start a new shell for this setup to take effect.
```
2024-12-27 22:42:44 +00:00
git-project-manager completion zsh [flags]
2024-12-19 19:51:26 +00:00
```
### Options
```
-h, --help help for zsh
--no-descriptions disable completion descriptions
```
### Options inherited from parent commands
```
2024-12-27 22:42:44 +00:00
--config string config file (default is ~/.config/git-project-manager.yaml)
2024-12-19 19:51:26 +00:00
--logLevel string Default log level -- info, warn, error, debug (default "info")
--projectPath string Sets a path for local clones of projects
--remote strings Specify remotes by host for any sub-command. Provide multiple times or comma delimited.
```
### SEE ALSO
2024-12-27 22:42:44 +00:00
* [git-project-manager completion](git-project-manager_completion.md) - Generate the autocompletion script for the specified shell
2024-12-19 19:51:26 +00:00
2024-12-30 20:50:31 +00:00
###### Auto generated by spf13/cobra on 30-Dec-2024