A cross-platform CLI assistant that uses Gemini to intelligently execute system operations and shell commands with safety checks.
-
Install Python Dependency:
pip install google-generativeai
-
Setup the Script:
- Mac/Linux: Save the script as
gsh, runchmod +x gsh, and move it to/usr/local/bin/. - Windows: Save the script as
gsh.pyand add its folder to your System PATH.
- Mac/Linux: Save the script as
-
Set API Key:
- Mac/Linux:
export GEMINI_API_KEY="your_key_here" - Windows:
$env:GEMINI_API_KEY="your_key_here"
- Mac/Linux:
-
Run: Type
gshto start interactive mode orgsh <command>for one-off tasks.
- Install Software:
gsh install vscode and python - System Health:
gsh check my disk usage and memory status - Git Automation:
gsh stage all changes and commit with message "bug fix" - File Search:
gsh find all jpg images modified in the last 24 hours - Project Setup:
gsh create a new folder called "api-service" and initialize a git repo inside it - Network Check:
gsh check my internet connection latency to google.com - Process Management:
gsh find the process id of chrome and kill it - Cleanup:
gsh remove unused docker containers - File Manipulation:
gsh convert all png files in this folder to webp(requires ffmpeg/magick) - System Update:
gsh update all my installed packages
Mac/Linux: Run this command in your terminal:
curl -fsSL [https://raw.githubusercontent.com/YOUR_GITHUB_USERNAME/gsh/main/install.sh](https://raw.githubusercontent.com/YOUR_GITHUB_USERNAME/gsh/main/install.sh) | bash
Windows:
Download gsh.exe from the Releases Page and add it to your PATH.
Make sure to replace `YOUR_GITHUB_USERNAME` with your actual username in the link above