3 releases

new 0.1.2 Jan 14, 2025
0.1.1 Nov 16, 2024
0.1.0 Nov 16, 2024

#5 in #cargo-binstall

Download history 121/week @ 2024-11-10 106/week @ 2024-11-17 8/week @ 2024-11-24 27/week @ 2024-12-01 20/week @ 2024-12-08 1/week @ 2024-12-15 56/week @ 2025-01-05 187/week @ 2025-01-12

243 downloads per month
Used in 2 crates

MIT license

8KB
183 lines

which-shell

cargo binstall which-shell

which-shell

fish 3.7.1

usage

use which_shell::which_shell;

fn main() {
    if let Some(sh) = which_shell() {
        println!("{}", sh)
    } else {
        println!("shell is not supported")
    }
}

shell

  • Bash
  • Zsh
  • Fish
  • PowerShell
  • Pwsh
  • Cmd
  • Nu
  • Dash
  • Ksh
  • Tcsh
  • Csh

Dependencies

~3–4MB
~72K SLoC