A command-line tool to interact with LLMs for bash and Linux questions
Project description
About
BASHIMU is a simple bash script to interact with OpenAI's ChatGPT models. It allows you to ask a question in the command line and get a one-liner response as a result.
Installation
Method 1: Using pip (Recommended)
pip install bashimu
Or install from source:
git clone https://github.com/wiktorjl/bashimu.git
cd bashimu
pip install .
Method 2: Using the deployment script
curl -s https://raw.githubusercontent.com/wiktorjl/bashimu/refs/heads/main/deploy.sh | sh
Method 3: Manual setup
Clone this repository and run bashimu_setup.sh script. It will set up the following variables:
$OPENAI_API_KEY - your private key
$OPENAI_MODEL_NAME - the default OpenAI model to be used
It will also ask you where to deploy the script, adjust the PATH accordingly, and set up ? as an alias for bashimu.sh.
Please view the script's source code before you run it so you know what it is doing.
Usage
Bash Script
Executing a query: ? get current time
Executing the last suggested command: ? !
Python TUI (Terminal User Interface)
Interactive mode:
bashimu-tui
Non-interactive mode (new):
bashimu-tui "what is the current directory command"
bashimu-tui --provider openai "how to find files by name"
bashimu-tui --persona coding_mentor "explain git rebase"
Demo:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bashimu-1.2.0.tar.gz.
File metadata
- Download URL: bashimu-1.2.0.tar.gz
- Upload date:
- Size: 390.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1512cb61b1d09ab5407c40d2b25a2a1f37f956cff46763906f9083f9301635
|
|
| MD5 |
36bdc989b74ca3ff901fd97b33f24f54
|
|
| BLAKE2b-256 |
386e8c345d01c834a19ba7857047666954dcccc6777d57ce814ef1d1779cddf8
|
File details
Details for the file bashimu-1.2.0-py3-none-any.whl.
File metadata
- Download URL: bashimu-1.2.0-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c491dd67a7070e7386f3aee5b987b91ea1cd8fdbf25bc5aa8ac714173c6a6c4
|
|
| MD5 |
a0726fb8c268c430d6346c3f7164ef54
|
|
| BLAKE2b-256 |
9384c11d5259dd56aac862938e690b1b3a8f2f85e3264cf4c06d6911fb5cd89f
|