GNU General Public License v3.0

项目介绍

plutowang/zsh-ollama-command 是一个托管在 GitHub 上的开源项目,主要使用 Shell 编写,采用 GNU General Public License v3.0 许可证,目前获得 51 个 Star、27 次 Fork。

仓库全名
plutowang/zsh-ollama-command
开源许可证
GNU General Public License v3.0
Star 数
51
Fork 数
27
未关闭 Issue
3

README 摘要

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 Intelligent Command Suggestions: Use OLLAMA to generate relevant MacOS terminal commands based on your query or input requirement. FZF Integration: Interactively select suggested commands using FZF's fuzzy finder, ensuring you find the right command…

完整内容见 GitHub 原始 README 或本页 。

常见问题

zsh-ollama-command 用什么语言开发?

主要使用 Shell 编写,采用 GNU General Public License v3.0 许可证,目前有 51 个 Star。

zsh-ollama-command 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 zsh-ollama-command 的源码?

可以直接克隆仓库:git clone https://github.com/plutowang/zsh-ollama-command.git,默认分支为 master;安装与运行步骤见仓库 README。

zsh-ollama-command 最近还在维护吗?

仓库最近一次更新为 2024年7月23日,当前有 3 个未关闭 Issue;Star 数为 51,可作为社区活跃度的参考。

关于

An oh-my-zsh plugin that integrates the OLLAMA AI model to provide command suggestions

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
108
价值分
38
活跃状态
活跃

语言占比

Shell

README

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

  • Intelligent Command Suggestions: Use OLLAMA to generate relevant MacOS terminal commands based on your query or input requirement.
  • FZF Integration: Interactively select suggested commands using FZF’s fuzzy finder, ensuring you find the right command for your task.
  • Customizable: Configure default shortcut, OLLAMA model, and response number to suit your workflow.

Requirements

  • jq for parsing JSON responses
  • fzf for interactive selection of commands
  • curl for making API requests
  • OLLAMA server running

Configuration Variables

Variable Name Default Value Description
ZSH_OLLAMA_MODEL llama3 OLLAMA model to use (e.g., llama3)
ZSH_OLLAMA_COMMANDS_HOTKEY Ctrl-o Default shortcut key for triggering the plugin
ZSH_OLLAMA_COMMANDS 5 Number of command suggestions displayed
ZSH_OLLAMA_URL http://localhost:11434 The 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!

评论

暂无评论