This repository contains a collection of miscellaneous Zsh completions for various tools. These completions are designed to enhance your command-line experience by providing autocompletion for commands and their options.
├── src
│ ├── _brctl
│ ├── _fileproviderctl
│ ├── _mbsync
│ ├── _pytr
│ ├── _qpdf
│ └── _sshuttle
└── zsh-misc-completions.plugin.zsh
src/
: Contains individual completion scripts for specific commands._brctl
: Completion forbrctl
(bridge management tool)._fileproviderctl
: Completion forfileproviderctl
._mbsync
: Completion formbsync
(mail synchronization tool)._pytr
: Completion forpytr
._qpdf
: Completion forqpdf
(PDF transformation tool)._sshuttle
: Completion forsshuttle
(VPN over SSH).
zsh-misc-completions.plugin.zsh
: Main plugin script to load all the completions.
Add this repository to your Zsh plugin manager.
With zinit, you can add the plugin as follows:
zinit wait for lucid light-mode as'completion' proto'ssh' from'github' compile'src/_*' @alberti42/zsh-misc-completions
To use with Oh My Zsh:
-
Clone the repository into the custom plugins directory:
git clone https://github.com/alberti42/zsh-misc-completions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-misc-completions
-
Add
zsh-misc-completions
to the list of plugins in your~/.zshrc
:plugins=(... zsh-misc-completions)
-
Restart your terminal or source your
~/.zshrc
:source ~/.zshrc
-
Clone this repository:
git clone https://github.com/<your-github-username>/zsh-misc-completions.git ~/.zsh/zsh-misc-completions
-
Source the plugin script in your
~/.zshrc
:source ~/.zsh/zsh-misc-completions/zsh-misc-completions.plugin.zsh
-
Restart your terminal or source your Zsh configuration:
source ~/.zshrc
Once installed, the completions will be automatically available for the supported commands. Type the command and press Tab
to see the available options.
Contributions are welcome! If you have a completion script for a tool that is not currently included, feel free to submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.