A fast, interactive command-line tool for managing and executing frequently used shell commands. Save your commonly used commands once, then quickly access and run them with a beautiful TUI (Terminal User Interface).
__
/ _)
.-^^^-/ /
__/ /
<__.|_|-|_|
- Interactive Menu: Navigate through your saved commands with arrow keys
- Quick Selection: Press number keys (1-9) to instantly select and execute commands
- Scrollable Interface: Handle large command lists with automatic scrolling
- Cross-Platform: Works on Linux, macOS, and Windows
- Colorful TUI: Beautiful terminal interface with syntax highlighting
- Simple File Format: Commands stored in a human-readable
.commands.aqcfile
curl -L https://github.com/amantham20/AQC/releases/latest/download/aqc-linux-amd64 -o aqc
chmod +x aqc
sudo mv aqc /usr/local/bin/curl -L https://github.com/amantham20/AQC/releases/latest/download/aqc-linux-arm64 -o aqc
chmod +x aqc
sudo mv aqc /usr/local/bin/curl -L https://github.com/amantham20/AQC/releases/latest/download/aqc-darwin-arm64 -o aqc
chmod +x aqc
sudo mv aqc /usr/local/bin/curl -L https://github.com/amantham20/AQC/releases/latest/download/aqc-darwin-amd64 -o aqc
chmod +x aqc
sudo mv aqc /usr/local/bin/Invoke-WebRequest -Uri "https://github.com/amantham20/AQC/releases/latest/download/aqc-windows-amd64.exe" -OutFile "aqc.exe"
Move-Item aqc.exe C:\Windows\aqc.exegit clone https://github.com/amantham20/AQC.git
cd AQC
go build -o aqc .
sudo mv aqc /usr/local/bin/Simply run aqc without arguments to launch the interactive menu:
aqcThis opens a beautiful TUI where you can:
- Use β/β arrow keys to navigate
- Press Enter to execute the selected command
- Press 1-9 to quickly select and execute a command by number
- Press q or Esc to quit
aqc add --cmd="docker build -t myapp ." --name="Build Docker" --desc="Build the Docker image"Parameters:
--cmd(required): The shell command to save--name(required): A short name for the command--desc(optional): A description of what the command does
aqc listaqc help
# or
aqc --help
aqc -haqc version
# or
aqc --version
aqc -vCommands are stored in .commands.aqc in your current directory. The format is simple and human-readable:
docker build -t name
- Docker Build: Build a Docker image tagged as "name"
---
pytest
- Run Tests: Execute the test suite using pytest
---
ls -la
- List All: List all files with details
---
Each command block contains:
- The shell command (first line)
- A hyphen followed by the name and description:
- Name: Description - A separator:
---
You can manually edit this file if needed!
# Create a .commands.aqc file with your common commands
aqc add --cmd="npm install" --name="Install" --desc="Install dependencies"
aqc add --cmd="npm run dev" --name="Dev Server" --desc="Start development server"
aqc add --cmd="npm run build" --name="Build" --desc="Build for production"
aqc add --cmd="npm test" --name="Test" --desc="Run test suite"
aqc add --cmd="git status" --name="Git Status" --desc="Check git status"# Launch interactive mode
aqc
# Press 1 to install dependencies
# Press 2 to start dev server
# Or use arrow keys to navigate| Key | Action |
|---|---|
| β / β | Navigate up/down |
| Enter | Execute selected command |
| 1-9 | Quick select and execute command |
| q | Quit |
| Esc | Quit |
| Ctrl+C | Quit |
- Go 1.21 or later
# Build for current platform
go build -o aqc .
# Build for all platforms
./build.shgo test -v ./...AQC/
βββ main.go # Entry point and CLI handling
βββ commands.go # Command file parsing and management
βββ interactive.go # Interactive TUI menu
βββ utils.go # Utility functions and colors
βββ add.go # Add command subcommand
βββ build.sh # Cross-platform build script
βββ *_test.go # Test files
βββ .commands.aqc # Your saved commands (created on first use)
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
Aman Dhruva Thamminana
- GitHub: @amantham20
- Email: thammina@msu.edu
If you have any feedback, please reach out at thammina@msu.edu or open an issue on GitHub!
Made with β€οΈ by Aman Dhruva Thamminana