User Guide
This guide covers all the features and commands available in Crust Shell.
π Getting Started
Starting Crust Shell
cd src
python main.py
if installed normally,
crust
Once started, youβll see the Crust Shell prompt with:
- Git repository and branch information (if in a git repo)
- Virtual environment name (if active)
- Current directory path
- The distinctive
οΌprompt symbol
π¨ The Crust Shell Interface
Prompt Elements
The Crust Shell prompt displays several useful pieces of information:
ο crust ξ main ο» ~/Projects/crust οΌ
- π myrepo - Git repository name and icon
- main - Current git branch (in green)
- ~/Projects/crust/src - Current directory (abbreviated path)
- οΌ - The Crust Shell prompt symbol
π§ Built-in Commands
Directory and File Operations
Enhanced Directory Listing
ls # Enhanced table view of current directory
ls -l # Same as ls (enhanced view)
ls -la # Same as ls (enhanced view)
Features:
- Shows files and directories in a beautiful table
- Displays file type, size, and modification time
- Color-coded for easy reading
Navigation
cd <directory> # Change to specified directory
System Information
Disk Usage
disk usage # Show disk usage in a formatted table
df -h # Alternative command for disk usage
USB Devices
lsusb # List connected USB devices in table format
Package Management
Package Search
capk <package-name> # Search for package across multiple platforms
Searches across:
- PyPI (Python packages)
- AUR (Arch User Repository)
- APT (Ubuntu/Debian packages)
- DNF (Fedora packages)
- npm (Node.js packages)
- crates.io (Rust packages)
- Packagist (PHP packages)
- Homebrew (macOS packages)
- CPAN (Perl packages)
- Hackage (Haskell packages)
- Chocolatey (Windows packages)
- RubyGems (Ruby packages)
- NuGet (.NET packages)
Example:
capk python
# Shows where "python" package is available
AI Integration
Question Assistant
.question <your-question>
Ask questions and get AI-powered assistance. The AI can:
- Answer technical questions
- Suggest commands
- Help with troubleshooting
- Provide explanations
Example:
.question How do I check my Python version?
System Troubleshooting
troubleshooting
Enters interactive troubleshooting mode where you can:
- Describe system problems
- Get AI-suggested solutions
- Execute diagnostic commands
- Receive step-by-step guidance
Information Commands
About Crust Shell
about # Show version and author information
π Command Aliases
Crust Shell supports custom command aliases defined in .crust/aliases.py.
Default Aliases
listβlsllβls -llaβls -laclsβcleardirβlsmdβmkdirrdβrmdircopyβcpmoveβmvpythonβpython3pyβpython3pipβpip3
Using Aliases
ll # Lists directory contents (same as ls -l)
cls # Clears screen
py --version # Shows Python version
π€ AI Features Deep Dive
Question Mode Features
When using .question, the AI can:
- Execute Commands: The AI can suggest commands and execute them with your permission
.question Check my disk space # AI might suggest: df -h # You can approve execution - Read Files: The AI can read configuration files to help diagnose issues
.question Why isn't my Python script working? # AI might ask to read the script file - Edit Files: The AI can suggest file modifications
.question Fix my Python script syntax # AI can suggest corrections and apply them
Troubleshooting Mode
The dedicated troubleshooting mode provides:
- Interactive Diagnosis: Describe problems in natural language
- Command Suggestions: Get specific commands to run
- File Analysis: AI can read and analyze configuration files
- Step-by-Step Solutions: Guided problem resolution
π Shell Integration
Running System Commands
Any command not recognized as a built-in Crust command will be passed to your system shell:
git status # Runs in system shell
python script.py # Runs in system shell
npm install # Runs in system shell
Keyboard Shortcuts
- Ctrl+C - Exit Crust Shell gracefully
- Ctrl+C during command execution - Cancel current command and return to prompt
π― Advanced Usage Tips
1. Combining Features
# Use capk to find a package, then install it
capk requests
# If found in PyPI:
pip install requests
2. Git Workflow Integration
The prompt automatically shows git information, making it perfect for development workflows:
- Repository name is always visible
- Branch information helps track your current work
- No need to run
git statusconstantly
3. Virtual Environment Support
When a Python virtual environment is active:
- The environment name appears in the prompt
- Python-related aliases (py, pip) work seamlessly
- Package searching with
capkhelps find dependencies
4. AI-Assisted Development
.question How do I set up a Flask application?
# Get step-by-step guidance with executable commands
troubleshooting
# Enter when you encounter development issues
π Troubleshooting Usage
Command Not Working?
- Check if itβs a built-in command (see list above)
- Verify your aliases in
.crust/aliases.py - Ensure required dependencies are installed
- Use the
troubleshootingcommand for AI help
AI Features Not Working?
- Check your Cohere API key in
.crust/cohere-api-key.txt - Verify internet connectivity
- Ensure the
coherePython package is installed
Configuration Issues?
- Verify
.crustdirectory exists - Check
aliases.pyandcmds.pyfiles - Review the Configuration Guide
Now that you know how to use Crust Shell, check out the Configuration Guide to customize it to your needs!