#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

#258 in Operating systems

Download history 102/week @ 2023-02-07 89/week @ 2023-02-14 44/week @ 2023-02-21 93/week @ 2023-02-28 114/week @ 2023-03-07 217/week @ 2023-03-14 204/week @ 2023-03-21 312/week @ 2023-03-28 196/week @ 2023-04-04 116/week @ 2023-04-11 4/week @ 2023-04-18 23/week @ 2023-04-25 12/week @ 2023-05-02 16/week @ 2023-05-09 13/week @ 2023-05-16 12/week @ 2023-05-23

54 downloads per month
Used in 3 crates (via clap_autocomplete)

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.6MB
~39K SLoC