mirror of
https://github.com/NotAShelf/tinierfetch.git
synced 2025-11-03 04:26:36 +00:00
separate programs by language
This commit is contained in:
parent
45f6cbb46a
commit
6295a0b7e6
8 changed files with 106 additions and 4 deletions
7
rs/Cargo.lock
generated
Normal file
7
rs/Cargo.lock
generated
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "tinierfetch-rs"
|
||||
version = "0.1.0"
|
||||
16
rs/Cargo.toml
Normal file
16
rs/Cargo.toml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
[package]
|
||||
name = "tinierfetch-rs"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[[bin]]
|
||||
name = "tinierfetch-rs"
|
||||
path = "main.rs"
|
||||
|
||||
[profile.release]
|
||||
strip = true
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
||||
9
rs/main.rs
Normal file
9
rs/main.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue