This module provides ZSH completions for Fabric, an open-source framework for augmenting humans using AI.
- Tab completion for all Fabric commands and flags
- Smart autocompletion for:
- 📂 Pattern selection from your local patterns directory
- 🤖 AI model selection with provider information
- 🌐 Language code selection with descriptions
- 🎥 YouTube URL template completion
- Cached model listings for improved performance
- Support for both short (-p) and long (--pattern) flag formats
- Clone this repository:
git clone https://github.com/diffficult/fabric-zsh.git
- Create the contrib directory in your Prezto installation if it doesn't exist:
mkdir -p ${ZDOTDIR:-$HOME}/.zprezto/contrib
- Symlink the module to your Prezto contrib directory:
ln -s /path/to/cloned/fabric-zsh ${ZDOTDIR:-$HOME}/.zprezto/contrib/fabric
- Add 'fabric' to your modules list in
.zpreztorc
:
# Find the modules section and add 'fabric' to the list
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'prompt' \
'fabric' # Add this line
- Restart your shell or reload your configuration:
source ${ZDOTDIR:-$HOME}/.zpreztorc
After installation, you can use tab completion with Fabric commands:
fabric [TAB]
- Show all available flagsfabric -y [TAB]
- Get YouTube URL templatefabric -p [TAB]
- List available patternsfabric -m [TAB]
- List available AI modelsfabric -g [TAB]
- List available language codes
To update the module, pull the latest changes from the repository:
cd /path/to/cloned/fabric-zsh
git pull
Your symlinked module will automatically reflect the updates.
Feel free to submit issues and enhancement requests! Please check for existing issues before submitting new ones.
MIT License - See LICENSE file for details
- Daniel Miessler for creating Fabric
- Sorin Ionescu for creating Prezto
- All contributors to this module
Made with ❤️ by the Fabric community