Overview
Ion is the default shell for Redox OS, designed to be modern, fast, and safe. Written in Rust, Ion provides a familiar command-line interface with advanced scripting capabilities.Ion Repository
View the Ion shell source code on GitLab
Key Features
Modern Syntax
Clean, intuitive syntax inspired by modern shells
Rust Performance
Fast execution with low memory overhead
Type Safety
Built-in type checking for variables and functions
Interactive Features
Advanced tab completion and history management
Getting Started
Ion is the default shell for both root and regular users in Redox OS:Basic Usage
- Commands
- Variables
- Functions
- Control Flow
Configuration
Ion can be configured through configuration files in the user’s home directory.
Built-in Commands
Ion provides several built-in commands:| Command | Description |
|---|---|
cd | Change directory |
echo | Print text to stdout |
test | Evaluate conditional expressions |
let | Define variables |
fn | Define functions |
alias | Create command aliases |
export | Export environment variables |
source | Execute commands from a file |
Scripting
Ion supports advanced scripting with modern features:Environment Variables
Ion works with standard environment variables:Integration with Redox
Ion integrates seamlessly with Redox OS features:- Scheme access: Direct access to Redox schemes
- Process management: Native support for Redox processes
- System integration: Works with init system and services
Performance
Ion is optimized for performance:- Fast startup: Minimal initialization time
- Low memory: Efficient memory usage
- Quick execution: Optimized command parsing and execution
Ion is written in Rust, providing memory safety without garbage collection overhead.
Resources
Ion Repository
Source code and development
Termion Library
Terminal library used by Ion
Redox Book
System documentation
Trying Out Redox
Get started with Redox and Ion
Maintainer
Jeremy Soller (@jackpot51)
Primary maintainer of Ion shell