refactor: rebrand bash-helper to super-man + ESC returns straight to menu
Rename bash-helper.sh -> super-man.sh and update all docs/tests to the super-man name and alias. In interactive mode, pressing Esc in the flag browser now returns directly to the home menu, removing the intermediary "Press Enter to search another command" prompt. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+28
-28
@@ -1,4 +1,4 @@
|
||||
# Bash Buddy v2.1.0 - AI-Powered Release 🤖
|
||||
# Super Man v2.1.0 - AI-Powered Release 🤖
|
||||
|
||||
## What's New
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
Integrated **NL2SH model** for advanced natural language understanding:
|
||||
|
||||
```bash
|
||||
bhelper ai "find all python files modified in last week"
|
||||
super-man ai "find all python files modified in last week"
|
||||
# Generated: find /path/to/directory -type f -name "*.py" -mtime -7
|
||||
|
||||
bhelper ai "count lines in all javascript files"
|
||||
bhelper ai "compress all log files older than 30 days"
|
||||
super-man ai "count lines in all javascript files"
|
||||
super-man ai "compress all log files older than 30 days"
|
||||
```
|
||||
|
||||
**Features:**
|
||||
@@ -75,37 +75,37 @@ Filter: -v
|
||||
|
||||
### 1. AI Mode (NEW!) 🤖
|
||||
```bash
|
||||
bhelper ai "find large files in home directory"
|
||||
bhelper ai "get network interface information"
|
||||
super-man ai "find large files in home directory"
|
||||
super-man ai "get network interface information"
|
||||
```
|
||||
|
||||
### 2. Natural Language Queries
|
||||
```bash
|
||||
bhelper ask "compress folder" # Database search
|
||||
bhelper task "disk usage" # Task search
|
||||
super-man ask "compress folder" # Database search
|
||||
super-man task "disk usage" # Task search
|
||||
```
|
||||
|
||||
### 3. Category Browsing
|
||||
```bash
|
||||
bhelper category files
|
||||
bhelper category network
|
||||
super-man category files
|
||||
super-man category network
|
||||
```
|
||||
|
||||
### 4. Command Explanation
|
||||
```bash
|
||||
bhelper explain "tar -czf archive.tar.gz folder/"
|
||||
super-man explain "tar -czf archive.tar.gz folder/"
|
||||
```
|
||||
|
||||
### 5. Interactive Mode (Enhanced!)
|
||||
```bash
|
||||
bhelper # Browse 90+ commands with fzf
|
||||
super-man # Browse 90+ commands with fzf
|
||||
# Select command → Enter filter → See flags
|
||||
```
|
||||
|
||||
### 6. Direct Flag Lookup
|
||||
```bash
|
||||
bhelper grep -v # Show grep flags with 'v'
|
||||
bhelper ls size # Show ls flags about size
|
||||
super-man grep -v # Show grep flags with 'v'
|
||||
super-man ls size # Show ls flags about size
|
||||
```
|
||||
|
||||
## Performance
|
||||
@@ -146,20 +146,20 @@ bhelper ls size # Show ls flags about size
|
||||
### Try AI Mode
|
||||
```bash
|
||||
source ~/.bashrc # Reload alias if needed
|
||||
bhelper ai "find files larger than 100MB"
|
||||
super-man ai "find files larger than 100MB"
|
||||
```
|
||||
|
||||
### Try Enhanced Interactive
|
||||
```bash
|
||||
bhelper # Opens fzf with 90+ commands
|
||||
super-man # Opens fzf with 90+ commands
|
||||
# Type to filter (e.g., "net" for network commands)
|
||||
# Select → Enter filter term → See relevant flags
|
||||
```
|
||||
|
||||
### All Commands Available
|
||||
```bash
|
||||
bhelper --help # See all modes
|
||||
bhelper --list # List all 90+ commands
|
||||
super-man --help # See all modes
|
||||
super-man --list # List all 90+ commands
|
||||
```
|
||||
|
||||
## Installation
|
||||
@@ -178,26 +178,26 @@ Or open a new terminal.
|
||||
|
||||
**Find Python files:**
|
||||
```bash
|
||||
$ bhelper ai "find python files modified this week"
|
||||
$ super-man ai "find python files modified this week"
|
||||
Generated: find /path/to/directory -type f -name "*.py" -mtime -7
|
||||
```
|
||||
|
||||
**Count lines:**
|
||||
```bash
|
||||
$ bhelper ai "count lines in all javascript files"
|
||||
$ super-man ai "count lines in all javascript files"
|
||||
Generated: find . -name "*.js" -exec wc -l {} + | awk '{sum+=$1} END {print sum}'
|
||||
```
|
||||
|
||||
**Network info:**
|
||||
```bash
|
||||
$ bhelper ai "show my IP address"
|
||||
$ super-man ai "show my IP address"
|
||||
Generated: ip addr show | grep 'inet ' | grep -v 127.0.0.1
|
||||
```
|
||||
|
||||
### Interactive Mode Example
|
||||
|
||||
```bash
|
||||
$ bhelper
|
||||
$ super-man
|
||||
# Type "tar" → Select "tar:Archive files"
|
||||
# Enter filter: "extract"
|
||||
|
||||
@@ -220,7 +220,7 @@ Your Ollama models:
|
||||
|
||||
**Default:** NL2SH (specialized for shell commands)
|
||||
|
||||
To switch models, edit `mode_ai()` function in bash-helper.sh
|
||||
To switch models, edit `mode_ai()` function in super-man.sh
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
@@ -242,7 +242,7 @@ This is now fixed in v2.1.0! The flag extraction has been completely rewritten.
|
||||
|
||||
### Want More Commands in Interactive Mode?
|
||||
|
||||
Edit the `COMMANDS` array in bash-helper.sh and add:
|
||||
Edit the `COMMANDS` array in super-man.sh and add:
|
||||
```bash
|
||||
"yourcommand:Description of what it does"
|
||||
```
|
||||
@@ -268,9 +268,9 @@ Edit the `COMMANDS` array in bash-helper.sh and add:
|
||||
|
||||
## Repository
|
||||
|
||||
**Location:** `~/coding/bash/bash-buddy/`
|
||||
**Location:** `~/coding/bash/super-man/`
|
||||
|
||||
**Gitea:** http://localhost:3030/trill-technician/bash-buddy
|
||||
**Gitea:** http://localhost:3030/trill-technician/super-man
|
||||
|
||||
**Latest commit:** 3e5e431
|
||||
|
||||
@@ -286,9 +286,9 @@ Edit the `COMMANDS` array in bash-helper.sh and add:
|
||||
|
||||
---
|
||||
|
||||
**Bash Buddy v2.1.0** - Now with AI! 🚀🤖
|
||||
**Super Man v2.1.0** - Now with AI! 🚀🤖
|
||||
|
||||
Try it now:
|
||||
```bash
|
||||
bhelper ai "your complex query here"
|
||||
super-man ai "your complex query here"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user