#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

#501 in #shell

Download history 9/week @ 2024-02-19 21/week @ 2024-02-26 8/week @ 2024-03-04 13/week @ 2024-03-11

51 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–2MB
~41K SLoC