Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 719 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 719 Bytes

command-wiz

a simple tool for querying shell command in terminal

Configuration

  1. Set the OpenAI API Key
export OPENAI_API_KEY="your-api-key-here"
  1. Modify the Configuration in cw.py
    You can adjust the BASE_URL and MODEL parameters in cw.py as needed to connect to the appropriate service and specify the model.

  2. Grant Execution Permission to cw.py

chmod +x cw.py
  1. Place the cw File in the System Path
    To be able to call the cw command directly from the terminal, copy the generated cw file to the /usr/local/bin directory.
    For example:
sudo cp cw /usr/local/bin

Example usage

$ cw find all python file in the folder
find . -name "*.py"