#shell #system #binary #runned

get-shell

A simple library to get the shell your binary is runned from

1 unstable release

0.1.0 Jan 20, 2021

#631 in #shell

Download history 11/week @ 2024-12-04 20/week @ 2024-12-11 6/week @ 2024-12-18 2/week @ 2025-01-08 15/week @ 2025-01-15 3/week @ 2025-01-22 61/week @ 2025-01-29 18/week @ 2025-02-05 29/week @ 2025-02-12 10/week @ 2025-02-19 12/week @ 2025-02-26

74 downloads per month

MIT license

5KB
70 lines

get-shell

Downloads License crates.io docs.rs A simple library to get the shell your binary is runned from

Installation

Add get-shell = "0.1.0" to [dependencies] section in your Cargo.toml

Usage

use get_shell::get_shell_name;

println!("{}", get_shell_name().unwrap());

Dependencies

~1–2.1MB
~45K SLoC