Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security NachrichtenIT Security News Hourly Summary 2026-09-22 08h : 8 posts(22.09.2026 um 08:00 Uhr)
IT Security NachrichtenDeutsche Telekom startet internationale Reise-eSIM T-Travel(22.09.2026 um 07:41 Uhr)
IT Security NachrichtenDrei ergänzende Microsoft-365-Apps werden im Dezember eingestellt(22.09.2026 um 07:42 Uhr)
IT Security NachrichtenRechnungshof: EU nicht genug gegen Cyberangriffe gewappnet(22.09.2026 um 07:42 Uhr)
IT NachrichtenThis UCD expert is building advanced quantum sensing tech(22.09.2026 um 08:00 Uhr)
IT NachrichtenHow to watch BJK Cup Finals 2026: Free Streams & Schedule(22.09.2026 um 08:00 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-22 08h : 8 posts(22.09.2026 um 08:00 Uhr)
IT Security NachrichtenDeutsche Telekom startet internationale Reise-eSIM T-Travel(22.09.2026 um 07:41 Uhr)
IT Security NachrichtenDrei ergänzende Microsoft-365-Apps werden im Dezember eingestellt(22.09.2026 um 07:42 Uhr)
IT Security NachrichtenRechnungshof: EU nicht genug gegen Cyberangriffe gewappnet(22.09.2026 um 07:42 Uhr)
IT NachrichtenThis UCD expert is building advanced quantum sensing tech(22.09.2026 um 08:00 Uhr)
IT NachrichtenHow to watch BJK Cup Finals 2026: Free Streams & Schedule(22.09.2026 um 08:00 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

prmt: instant-feeling shell prompts (sub-millisecond, even over SSH)

TL;DR: Rust-powered shell prompt with sub-millisecond rendering that stays fast over SSH. 3axap4eHko / prmt Ultra-fast, customizable shell prompt generator …

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

TL;DR: Rust-powered shell prompt with sub-millisecond rendering that stays fast over SSH.







GitHub logo

3axap4eHko
/
prmt



Ultra-fast, customizable shell prompt generator







prmt 🚀




Ultra-fast, customizable shell prompt that won't slow you down



Crates.io
License: MIT
Rust


Terminal



Rendered with "{path:#89dceb}{rust:#f38ba8:f: 🦀}{git:#f9e2af:f: }\n{ok:#a6e3a1}{fail:#f38ba8} "




Features





  • ⚡ Blazing Fast: Sub-millisecond rendering for typical prompts (~2ms end-to-end)


  • 🎨 Highly Customizable: Full control over colors, formats, and what information to show


  • 🚀 Context Aware: Automatically detects git repos, project files, shows only what's relevant


  • 📦 Zero Dependencies: Single binary, no runtime dependencies required


  • 🦀 Memory Efficient: Zero-copy parsing with SIMD optimizations


  • ✨ Smart Rendering: Only shows information when relevant to your current directory



Why prmt?



Faster than alternatives – Typical prompts render in ~2ms. Starship averages 10-50ms, oh-my-posh 20-100ms.


Zero configuration needed – Works out of the box with sensible defaults. Customize only what you want.


Predictable performance – No async operations, no network calls, no surprises. Your prompt is always instant.


Single binary – Just install and go. No configuration files required unless…














The problem



Starship: Beautiful but slow (~10-50ms renders). Async I/O adds unpredictable latency over SSH.



oh-my-posh: Feature-rich but heavy. 20MB binary, 20-100ms renders.



Pure Bash/Zsh: Fast but unmaintainable config spaghetti.









Why prmt?





  • Sub-millisecond renders — ~10-50 µs for path + git


  • Predictable — no async I/O, no surprises over SSH


  • Zero config — works out of the box


  • Drop-in replacement — migrate from Starship in 5 minutes









Setup






cargo install prmt









Bash / Zsh






# Bash: ~/.bashrc
PS1='$(prmt --code $? "{path:cyan:s} {git:purple:s:on :} {ok:green}{fail:red} ")'

# Zsh: ~/.zshrc (add this line first)
setopt PROMPT_SUBST
PROMPT='$(prmt --code $? "{path:cyan:s} {git:purple:s:on :} {ok:green}{fail:red} ")'









Fish






# ~/.config/fish/config.fish
function fish_prompt
prmt --code $status '{path:cyan:s} {git:purple:s:on :} {ok:green}{fail:red} '
end







PowerShell is also supported — see the README.










Performance breakdown






































Prompt Modules Time What's slow?
Minimal {path} ~10 µs Nothing
Typical {path} {git} {ok}{fail} ~1-2 ms Git status check
Full {path} {git} {rust} {node} ~25-30 ms Running rustc --version etc
Fast mode --no-version < 5 ms Skips all version calls


Key insight: The renderer is microseconds. Version detection (running rustc --version, node --version) dominates total time. Use --no-version if you don't need versions.






Reproduce locally






# Internal benchmark
prmt --bench '{path} {git} {ok}{fail}'

# End-to-end with hyperfine
hyperfine --warmup 5 'prmt --no-version "{path} {git} {ok}{fail}"'












Migrating from Starship




































Starship prmt
directory
{path:r} (relative) or {path:s} (short)
git_branch
{git:s} (branch only)
git_status
{git} (branch + status)
character
{ok}{fail} with --code $?
nodejs
{node:s} (short version)
rust
{rust:s} (short version)


Plain prompt (path + git + indicator):




prmt --code $? "{path:cyan:s} {git:purple:s:on :} {ok:green}{fail:red} "






With versions (add Node/Rust):




prmt --code $? "{path:cyan:s} {node:green:s: ⬢}{rust:red:s: 🦀}{git:purple} {ok}{fail} "






Output: projects ⬢20.5 🦀1.90 main ❯









Why it's fast





  • Zero-copy parsing — minimal allocations


  • Cached module detection — only checks relevant directories


  • No async runtime — no Tokio overhead, predictable latency



See the README for benchmarks and implementation details.









Format cheatsheet



Syntax: {module:style:type:prefix:postfix}



Modules: path, git, rust, node, python, go, time, ok, fail



Styles: red, cyan, #89dceb (hex), bold, dim, italic



Path types: r (relative), a (absolute), s (short — last dir only)



Git types: f (branch+status), s (branch only)



Version types: m (major), s (short), f (full)



Examples:




{path:cyan:s}              # Short path in cyan
{git:purple::on :} # "on main" in purple
{rust:red:s: 🦀} # "🦀1.90" in red
{ok:green:✓}{fail:red:✗} # Custom success/fail symbols






Full reference in the README.









Try it






cargo install prmt






Like it? ⭐ the repo and share your config!






Ivan Zakharchanka · GitHub @3axap4eHko

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten prmt: instant-feeling shell prompts (sub-millisecond, even over SSH)

Thematisch verwandte Begriffe: prmt, instantfeeling, shell, prompts · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-61647 | NotebookLM MCP is an MCP server and HTTP service for interacting with Go…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick