#shell #system

query-shell

A simple library to get the user's shell

3 releases (breaking)

0.3.0 Feb 10, 2023
0.2.0 Apr 20, 2022
0.1.0 Apr 19, 2022

#561 in Operating systems

Download history 166/week @ 2025-11-12 227/week @ 2025-11-19 221/week @ 2025-11-26 327/week @ 2025-12-03 347/week @ 2025-12-10 237/week @ 2025-12-17 174/week @ 2025-12-24 274/week @ 2025-12-31 242/week @ 2026-01-07 178/week @ 2026-01-14 317/week @ 2026-01-21 269/week @ 2026-01-28 268/week @ 2026-02-04 140/week @ 2026-02-11 259/week @ 2026-02-18 506/week @ 2026-02-25

1,233 downloads per month
Used in 8 crates (2 directly)

MIT license

6KB
81 lines

Downloads License crates.io docs.rs

query-shell

A simple library to get the user's shell.

Forked from alicecarroll/get-shell.

Installation

cargo add query-shell

Or manually add query-shell = "0.3" to the [dependencies] section in your Cargo.toml.

Usage

use query_shell::get_shell_name;

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

Changelog

v0.3.0

  • Updated sysinfo to the latest release.

v0.2.0

  • Updated sysinfo to the latest release.
    • This removed 4 dependencies
  • Improved runtime performance (from ~170ms to ~140ms).

v0.1.0

  • Forked from alicecarroll/get-shell.
  • Removed default features of sysinfo (e.g. rayon).
  • Added documentation.
  • Not loading everything from the sysinfo crate (runtime went from >2s to <200ms).

Dependencies

~1–1.7MB
~37K SLoC