mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2024-11-23 05:40:49 +00:00
10 lines
262 B
Rust
10 lines
262 B
Rust
|
use std::env;
|
||
|
|
||
|
fn main() {
|
||
|
["USER", "SHELL", "TERM", "LANG"]
|
||
|
.iter()
|
||
|
.for_each(|var| println!("{}: {}", var, env::var(var).unwrap_or_default()));
|
||
|
|
||
|
println!("\x1B[35mcolors: \x1B[0m\x1B[41m \x1B[42m \x1B[43m \x1B[44m \x1B[45m \x1B[0m");
|
||
|
}
|