https://github.com/icelk/query-shell
A simple library to get the user's shell.
https://github.com/icelk/query-shell
Last synced: about 1 year ago
JSON representation
A simple library to get the user's shell.
- Host: GitHub
- URL: https://github.com/icelk/query-shell
- Owner: Icelk
- License: mit
- Created: 2022-04-19T19:59:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T19:17:11.000Z (over 3 years ago)
- Last Synced: 2025-01-10T18:27:15.308Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://crates.io/crates/query-shell)
[](https://docs.rs/query-shell)
# `query-shell`
> A simple library to get the user's shell.
Forked from [alicecarroll/get-shell](https://gitlab.com/alicecarroll/get-shell).
## Installation
`cargo add query-shell`
Or manually add `query-shell = "0.3"` to the `[dependencies]` section in your `Cargo.toml`.
## Usage
```rs
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](https://gitlab.com/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).