| Crates.io | rsleep |
| lib.rs | rsleep |
| version | 0.1.0 |
| created_at | 2025-10-28 23:14:52.431176+00 |
| updated_at | 2025-10-28 23:14:52.431176+00 |
| description | A prettier version of the sleep command that shows you something is going on |
| homepage | |
| repository | https://github.com/danielsan/rsleep |
| max_upload_size | |
| id | 1905753 |
| size | 14,226 |
A prettier version of the sleep command that shows you something is going on.
rsleep is a modern Rust-based alternative to the classic sleep command, featuring a beautiful progress bar that visualizes the waiting time. Perfect for scripts, demonstrations, or when you just want to see something happening during a delay.
2.5 for 2.5 seconds)cargo install rsleep
git clone https://github.com/danielsan/rsleep
cd rsleep
cargo install --path .
git clone https://github.com/danielsan/rsleep
cd rsleep
cargo build --release
# Binary will be at target/release/rsleep
Basic usage:
rsleep <seconds>
Sleep for 5 seconds:
rsleep 5
Sleep for 2.5 seconds:
rsleep 2.5
Use in a shell script:
#!/bin/bash
echo "Starting process..."
rsleep 3
echo "Process complete!"
Use in a loop with delays:
for i in {1..5}; do
echo "Iteration $i"
rsleep 1.5
done
rsleep <seconds>
Arguments:
<seconds> Duration to sleep in seconds (supports decimals)
Examples:
rsleep 5 # Sleep for 5 seconds
rsleep 2.5 # Sleep for 2.5 seconds
The progress bar displays:
Example output:
⠙ [00:00:02] [##########>---------] 8/20 (3s)
sleep command which provides no output, rsleep shows you exactly what's happeningThis project is licensed under the MIT License - see the LICENSE file for details.
Daniel Santana - @danielsan
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
Give a ⭐️ if this project helped you!