The story behind the prompt

Windows roots.
Open possibilities.

K Shell is an open-source shell written in Rust. Inspired by Zsh and Fish, built to make your Windows command line feel like your own.

In active developmentMIT licensed
Native by designkshell.exe
Your next commandEditing & history with Rustyline
Enter
K ShellLexer. Parser. Runtime.
Rust
Right at home on WindowsNative processes & platform APIs
From a keystroke to a native Windows process.
A familiar feeling, built from the ground up.

The shell should
meet you halfway.

A good command line gives you room to think. It remembers where you’ve been, helps with what comes next, and makes the routine feel effortless.

That’s the idea behind K Shell. Take inspiration from the experience of Zsh and Fish, then build for Windows on its own terms: native applications, familiar paths, and a prompt that fits your workflow.

The current shell brings together Linux-style file commands, smart suggestions, persistent history, and personal themes. It’s a foundation that’s still growing, with its own language and runtime at the center.

Native where it matters.

Work with Windows programs and paths directly.

Personal by choice.

Colors, icons, and suggestions that feel like you.

Open from the start.

MIT licensed, with room to explore and contribute.

The technology behind K Shell

Small stack.
Deep foundations.

A native core and a few focused libraries.
Each one has a clear job.

Core language

Rust

2024 edition

The shell’s own lexer, parser, runtime, commands, and platform modules are written in Rust.

language / lexer + parser
runtime / command dispatch
platform / native Windows
Explore Rust 2024
Rustyline19.0.0The interactive experienceLine editing, persistent history, and the hooks K Shell uses for completion, hints, and highlighting.

K Shell implements its own completion and validation logic on top of Rustyline’s editor. File-history and custom-key-binding features keep useful commands and keyboard shortcuts within reach.

Read the library documentation
windows-sys0.61.2A direct connection to WindowsNative Windows API bindings for console behavior, files, system information, and desktop integration.

Windows-specific operations live in dedicated platform modules. They handle tasks such as console titles, interrupts, file associations, filesystem checks, and read-only system snapshots.

Read the library documentation
unicode-width0.2.3Space for every characterMeasures text in terminal cells so file listings and prompts can align with Unicode filenames.

A character does not always occupy one terminal cell. K Shell uses unicode-width when laying out output so spacing follows the visible width of the text.

Read the library documentation

Versions reflect this project’s Cargo.lock. Download the project reference

Under the hood

One command.
Clear responsibilities.

The interactive layer, language, and Windows integration each have their place. Here’s how the pieces fit together.

Try your first command
src/interactive

Interactive editor

The prompt, editing, suggestions, and command history. Rustyline handles the editing surface; K Shell supplies its shell-specific behavior.

src/language + src/runtime

Language & runtime

K Shell’s own lexer and single-command parser turn input into commands. Its runtime dispatches built-ins and launches native applications.

src/platform

Windows platform

Native process lookup, console behavior, and Windows APIs stay behind a dedicated platform layer.

Free to use. Open to possibility.

Your next idea starts
with a fresh prompt.

Explore the docs, build it yourself, and make K Shell part of your workflow.