Do not execute unverified commands in your terminal. Executing unknown or untrusted commands can potentially damage your computer, destroy files, and result in data loss. Always ensure that the commands you run are safe and verified.
We are not responsible for any mishaps or damages that may occur from using this software. It is highly recommended that you fully understand how this software works before using it.
InitialTerm is a terminal application that leverages the Ollama API to convert user queries into command-line commands. When you input a query, the software sends it to the Ollama API, which processes the query using a specified model and returns a terminal command. This command is then displayed to you for execution. You have the option to confirm or cancel the execution of the generated command.
Please ensure that you review and understand the commands before executing them to prevent any unintended consequences.
InitialTerm is a terminal application that uses the Ollama API to convert user queries into command-line commands. It supports both Windows and macOS operating systems.
To install InitialTerm in editable mode, use the following command:
pip install -e .
Ensure you have the necessary dependencies installed. You can find them in the requirements.txt
file or install them manually using:
pip install ollama requests
InitialTerm is available on PyPI. You can install it using pip:
pip install initialterm
For more details, visit the PyPI project page.
To use InitialTerm, simply run the following command in your terminal:
initialterm
You can also specify a model to use by adding the --model
option:
initialterm --model llama-3.2:3b
This will start the custom command prompt where you can enter your queries. The application will convert your queries into terminal commands using the specified model.
Type exit
or quit
to leave the command prompt.
To install InitialTerm in editable mode, use the following command:
source .venv/bin/activate
pip install -e .
Specially for Ubuntu 22 and above those needs to use python env
add below line into your ~/.bashrc
file. Please modify the path to initialterm/start.sh
based on your file location.
alias aiterminal='/PATH/TO/HOME/initialterm/start.sh'
After adding the alias, reload your ~/.bashrc
file to apply the changes:
source ~/.bashrc
Now open your terminal and Just type the command:
aiterminal
We welcome contributions to InitialTerm! If you'd like to contribute, please follow these guidelines:
- Fork the repository and create your branch from
main
. - Make your changes and test them thoroughly.
- Submit a pull request with a clear description of your changes.
Feel free to open issues for bug reports or feature requests. We appreciate your feedback and contributions!
- Python 3.6+
- Ollama API
This project is open-source and available under a permissive license. You are free to do whatever you want with this software, but please be safe and ensure that your actions do not cause harm to yourself, your data, or your computer.
This project is licensed under the MIT License. See the LICENSE file for details.