Commit Graph

3622 Commits

Author SHA1 Message Date
43f097eae8 fix(hostname): use DNS instead of NetBIOS name on Windows (#6343) 2025-01-11 15:00:48 +01:00
af5d139060 fix(username): avoid using whoami on android (#6342)
Closes #6340

Co-authored-by: AminurAlam <64137875+aminuralam@users.noreply.github.com>
2025-01-11 14:59:29 +01:00
ee6bf760d4 docs(nu): simplify nushell setup (#6445) 2025-01-11 14:58:45 +01:00
dfddd999c3 chore: handle updates for os-info, windows and shadow-rs (#6487)
* build(deps): update rust crate windows to 0.59.0

* chore: handle windows update

* chore: handle os_info update

* build(deps): update rust crate shadow-rs to 0.37.0

* chore: handle shadow-rs update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 14:58:02 +01:00
b90eab3198 build(deps): update rust crate log to 0.4.24 2025-01-11 01:18:58 +00:00
24516d0f25 build(deps): update clap crates (#6485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 22:33:51 +01:00
b5e865ae7d chore: fix clippy warnings for rust v1.83 & current nightly (#6413)
* chore: fix clippy warning for rust v1.83

* chore: fix clippy warning for nightly rust
2025-01-09 19:49:59 +01:00
3b43b6be52 docs(preset/nerd-fonts): Add CMake symbol to Nerd Fonts preset (#6456) 2025-01-09 19:45:45 +01:00
6678c13c24 docs: fix typo in comment of git_commit module (#6472) 2025-01-09 19:42:59 +01:00
4e473e99ff build(deps): update clap crates 2025-01-07 20:40:29 +00:00
8b9e860e10 build(deps): update rust crate serde_json to 1.0.135 2025-01-07 00:43:51 +00:00
6de7a01788 build(deps): lock file maintenance (#6475)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 04:28:46 +00:00
8829d275fb build(deps): update dependency dprint/dprint-plugin-toml to v0.6.4 2025-01-06 00:29:58 +00:00
f37b81961f build(deps): update rust crate open to 5.3.2 (#6474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-05 19:37:11 +00:00
8a435693a4 build(deps): update rust crate os_info to 3.9.2 2025-01-05 14:06:23 +00:00
d204259211 build(deps): update crate-ci/typos action to v1.29.4 2025-01-03 17:26:39 +00:00
7faee3680c build(deps): update rust crate tempfile to 3.15.0 2025-01-03 00:09:15 +00:00
3cdb2af2a3 build(deps): update crate-ci/typos action to v1.29.3 2025-01-02 21:23:34 +00:00
a299f4c7a2 build(deps): update crate-ci/typos action to v1.29.1 2025-01-02 15:59:25 +00:00
0521e82dc5 build(deps): update crate-ci/typos action to v1.29.0 2024-12-31 17:14:47 +00:00
611b463e63 build(deps): lock file maintenance 2024-12-30 00:33:43 +00:00
fb010f1f3c build(deps): update rust crate quick-xml to 0.37.2 2024-12-29 19:48:03 +00:00
MK
2df521c69b feat(bun): Detect bun using new text-format lockfile (#6441)
* Support bun text-format lockfile

Bun version 1.1.39 introduced a new plaintext lockfile. Currently it is opt-in only, but it will become the default in bun version 1.2.

* update docs

* update config schema

* update tests
2024-12-29 18:20:01 +01:00
2922ee78d2 build(deps): update rust crate serde to 1.0.217 2024-12-27 21:28:31 +00:00
Ky
2690a329cf feat(battery): Use best match instead of first match for battery.display threshold (#6442)
Previously the selection code simply filtered for the first style found
within the config with a threshold larger than the current battery
percentage. If the config defined multiple display thresholds that were
above the battery percentage it would only select the first one that was
encountered rather than the one that was closest to the current battery
percentage.

This commit also adds a test to ensure this property is held true. The
test accomplishes this by comparing the parsing of a config with two
`battery.display` entries, one with a threshold at 100% & the other at
60%, with a mock battery set at 50% charge. This config is parsed with
the 100% threshold defined above the 60% threshold, and then again with
the 60% threshold defined above the 100% threshold. To ensure the
entries are parsed parsed correctly each entry is given a different
style, so the expected value that is compared against has the same style
as the 60% threshold entry for both test cases.


* Update src/modules/battery.rs

Use more concise chain of functions from Iterator

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-12-27 11:32:13 +01:00
e21775c694 feat(status): add {success,failure}_style options (#6269) 2024-12-27 11:30:28 +01:00
45937166c8 feat(direnv): allow direnv to detect environment variables (#6196) 2024-12-27 11:25:15 +01:00
7ead2b55eb fix: handle variable bash $SHLVL behavior with explicit option (#4912)
* Accept shlvl as --shlvl option

* For bash only, pass --shlvl explicitly

* fmt

* Apply suggestion

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* Apply suggestion

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>

* parse_jobs -> parse_i64

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-12-27 11:14:10 +01:00
9b6d394e01 fix(init/pwsh): preserve ViModeChangeHandler (#6225)
* Combine ViModeChangeHandler

If a user has defined a ViModeChangeHandler setting this would respect that as well as redraw the prompt (to allow rendering things like the character change).

* Add newline

* Use call operator to limit new closure scope

* Pass any args to original handler
2024-12-27 11:11:45 +01:00
1f4b664cff build(deps): lock file maintenance 2024-12-23 01:32:39 +00:00
ba16bdab88 build(deps): update rust crate gix to 0.69.1 (#6446)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-22 21:34:45 +00:00
0d2edee51f build(deps): update rust crate os_info to 3.9.1 2024-12-22 19:13:17 +00:00
d4ba0d19e6 build(deps): update rust crate serde_json to 1.0.134 2024-12-21 19:57:20 +00:00
c7b0b68618 build(deps): update rust crate home to 0.5.11 (#6437)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 20:37:10 +00:00
0993b4d70d build(deps): update rust crate which to 7.0.1 2024-12-19 21:48:29 +00:00
9d2201066a build(deps): update rust crate clap_complete to 4.5.40 2024-12-17 18:40:46 +00:00
e1a173fe42 build(deps): update crate-ci/typos action to v1.28.4 (#6438)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 01:32:27 +00:00
00d3b00d60 build(deps): update rust crate clap_complete to 4.5.39 2024-12-16 19:09:49 +00:00
2acb479016 build(deps): lock file maintenance 2024-12-16 00:18:46 +00:00
44941823da build(deps): update rust crate systemstat to v0.2.4 2024-12-14 18:34:02 +00:00
dbcabdc160 build(deps): update rust crate shadow-rs to 0.36.1 2024-12-13 17:05:02 +00:00
d510240c18 build(deps): update rust crate semver to 1.0.24 (#6434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 00:21:03 +00:00
ca873bc3d1 build(deps): update crate-ci/typos action to v1.28.3 2024-12-12 23:02:24 +00:00
0a6b44ca9f build(deps): update rust crate serde to 1.0.216 2024-12-11 04:46:27 +00:00
9e06bb73f7 build(deps): update rust crate chrono to 0.4.39 2024-12-09 10:59:21 +00:00
49a6a45d1c build(deps): lock file maintenance 2024-12-09 02:00:18 +00:00
c15c75f7a5 docs(preset): add buf symbol to plain text symbols preset (#6427) 2024-12-07 18:10:13 +01:00
e6f4a7d30e build(deps): update pest crates to 2.7.15 2024-12-07 05:24:18 +00:00
5e7b4ad408 build(deps): update rust crate clap to 4.5.23 2024-12-06 00:46:22 +00:00
de227a4458 build(deps): update embarkstudios/cargo-deny-action action to v2.0.4 (#6424)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-04 04:12:49 +00:00