get-shell
A simple library to get the shell your binary is runned from
Add get-shell = "0.1.0" to [dependencies] section in your Cargo.toml
get-shell = "0.1.0"
[dependencies]
Cargo.toml
use get_shell::get_shell_name; println!("{}", get_shell_name().unwrap());