Skip to the content.

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:

🎨 The Crust Shell Interface

Prompt Elements

The Crust Shell prompt displays several useful pieces of information:

 crust ξ‚  main   ~/Projects/crust οΌ‹

πŸ”§ 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:

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

capk <package-name>    # Search for package across multiple platforms

Searches across:

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:

Example:

.question How do I check my Python version?

System Troubleshooting

troubleshooting

Enters interactive troubleshooting mode where you can:

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

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:

  1. 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
    
  2. 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
    
  3. 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:

πŸ”„ 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

🎯 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:

3. Virtual Environment Support

When a Python virtual environment is active:

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?

  1. Check if it’s a built-in command (see list above)
  2. Verify your aliases in .crust/aliases.py
  3. Ensure required dependencies are installed
  4. Use the troubleshooting command for AI help

AI Features Not Working?

  1. Check your Cohere API key in .crust/cohere-api-key.txt
  2. Verify internet connectivity
  3. Ensure the cohere Python package is installed

Configuration Issues?

  1. Verify .crust directory exists
  2. Check aliases.py and cmds.py files
  3. Review the Configuration Guide

Now that you know how to use Crust Shell, check out the Configuration Guide to customize it to your needs!