| Crates.io | which-shell |
| lib.rs | which-shell |
| version | 0.1.5 |
| created_at | 2024-11-16 10:55:59.21508+00 |
| updated_at | 2025-06-05 03:26:35.924191+00 |
| description | which-shell |
| homepage | https://github.com/ahaoboy/which-shell |
| repository | https://github.com/ahaoboy/which-shell |
| max_upload_size | |
| id | 1450298 |
| size | 15,476 |
cargo binstall which-shell
which-shell
fish 3.7.1
use which_shell::which_shell;
fn main() {
if let Some(sh) = which_shell() {
println!("{}", sh)
} else {
println!("shell is not supported")
}
}