query-shell

Crates.ioquery-shell
lib.rsquery-shell
version0.3.0
sourcesrc
created_at2022-04-19 20:46:21.06872
updated_at2023-02-10 19:17:24.332862
descriptionA simple library to get the user's shell.
homepage
repositoryhttps://github.com/Icelk/query-shell
max_upload_size
id570634
size7,088
Icelk (Icelk)

documentation

README

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).
Commit count: 8

cargo fmt