3 releases (breaking)

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

#710 in Operating systems

Download history 120/week @ 2024-07-24 125/week @ 2024-07-31 147/week @ 2024-08-07 118/week @ 2024-08-14 342/week @ 2024-08-21 269/week @ 2024-08-28 401/week @ 2024-09-04 336/week @ 2024-09-11 345/week @ 2024-09-18 280/week @ 2024-09-25 180/week @ 2024-10-02 157/week @ 2024-10-09 362/week @ 2024-10-16 150/week @ 2024-10-23 126/week @ 2024-10-30 144/week @ 2024-11-06

825 downloads per month
Used in 5 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