Home

Awesome

zsh-ollama-command

An oh-my-zsh plugin that integrates the OLLAMA AI model with fzf to provide intelligent command suggestions based on user input requirements.

Features

Requirements

Configuration Variables

Variable NameDefault ValueDescription
ZSH_OLLAMA_MODELllama3OLLAMA model to use (e.g., llama3)
ZSH_OLLAMA_COMMANDS_HOTKEYCtrl-oDefault shortcut key for triggering the plugin
ZSH_OLLAMA_COMMANDS5Number of command suggestions displayed
ZSH_OLLAMA_URLhttp://localhost:11434The URL of OLLAMA server host

Usage

  1. Clone the repository to oh-my-zsh custom plugin folder

    git clone https://github.com/plutowang/zsh-ollama-command.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-ollama-command
    
  2. Enable the plugin in ~/.zshrc:

    plugins=(
      [plugins...]
      zsh-ollama-command
    )
    
  3. Input what you want to do then trigger the plugin. Press the custom shortcut (default is Ctrl-o) to start the command suggestion process.

  4. Interact with FZF: Type a query or input requirement, and FZF will display suggested MacOS terminal commands. Select one to execute.

Get Started

Experience the power of AI-driven command suggestions in your MacOS terminal! This plugin is perfect for developers, system administrators, and anyone looking to streamline their workflow.

Let me know if you have any specific requests or changes!