Skip to content

yisonPylkita/prompt-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prompt-rs

Shell prompt generator in Rust

Why?

I want to see how long it takes for ZSH to run Rust app that generates shell prompt compared to writing same prompt generator function in shell

Roadmap

  • Write test scenario
  • Write Rust generator for test scenario
  • Write ZSH generator for test scenario

Rules

  • Complete time of execution will be measured. So test shall look like this
# 1. Check start time with microseconds precision
# 2. Run generator and store its result as ENV string
# 3. Print execution time with microseconds precision

How to run

print -P "$(cargo run --release -- --error "$?")"

Releases

No releases published

Packages

No packages published