Compare commits

...

105 Commits

Author SHA1 Message Date
github-actions[bot] 43d6ceeaab chore(master): release 1.22.0 (#6383)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-11 16:22:31 +01:00
David Knaack 43f097eae8 fix(hostname): use DNS instead of NetBIOS name on Windows (#6343) 2025-01-11 15:00:48 +01:00
David Knaack 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
David Knaack ee6bf760d4 docs(nu): simplify nushell setup (#6445) 2025-01-11 14:58:45 +01:00
David Knaack 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
renovate[bot] b90eab3198 build(deps): update rust crate log to 0.4.24 2025-01-11 01:18:58 +00:00
renovate[bot] 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
David Knaack 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
Hriday Algh 3b43b6be52 docs(preset/nerd-fonts): Add CMake symbol to Nerd Fonts preset (#6456) 2025-01-09 19:45:45 +01:00
Eduardo J. Ortega U. 6678c13c24 docs: fix typo in comment of git_commit module (#6472) 2025-01-09 19:42:59 +01:00
renovate[bot] 4e473e99ff build(deps): update clap crates 2025-01-07 20:40:29 +00:00
renovate[bot] 8b9e860e10 build(deps): update rust crate serde_json to 1.0.135 2025-01-07 00:43:51 +00:00
renovate[bot] 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
renovate[bot] 8829d275fb build(deps): update dependency dprint/dprint-plugin-toml to v0.6.4 2025-01-06 00:29:58 +00:00
renovate[bot] 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
renovate[bot] 8a435693a4 build(deps): update rust crate os_info to 3.9.2 2025-01-05 14:06:23 +00:00
renovate[bot] d204259211 build(deps): update crate-ci/typos action to v1.29.4 2025-01-03 17:26:39 +00:00
renovate[bot] 7faee3680c build(deps): update rust crate tempfile to 3.15.0 2025-01-03 00:09:15 +00:00
renovate[bot] 3cdb2af2a3 build(deps): update crate-ci/typos action to v1.29.3 2025-01-02 21:23:34 +00:00
renovate[bot] a299f4c7a2 build(deps): update crate-ci/typos action to v1.29.1 2025-01-02 15:59:25 +00:00
renovate[bot] 0521e82dc5 build(deps): update crate-ci/typos action to v1.29.0 2024-12-31 17:14:47 +00:00
renovate[bot] 611b463e63 build(deps): lock file maintenance 2024-12-30 00:33:43 +00:00
renovate[bot] 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
renovate[bot] 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
T0mstone e21775c694 feat(status): add {success,failure}_style options (#6269) 2024-12-27 11:30:28 +01:00
Nick Conway 45937166c8 feat(direnv): allow direnv to detect environment variables (#6196) 2024-12-27 11:25:15 +01:00
Rich Lafferty 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
Gilbert Sanchez 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
renovate[bot] 1f4b664cff build(deps): lock file maintenance 2024-12-23 01:32:39 +00:00
renovate[bot] 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
renovate[bot] 0d2edee51f build(deps): update rust crate os_info to 3.9.1 2024-12-22 19:13:17 +00:00
renovate[bot] d4ba0d19e6 build(deps): update rust crate serde_json to 1.0.134 2024-12-21 19:57:20 +00:00
renovate[bot] 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
renovate[bot] 0993b4d70d build(deps): update rust crate which to 7.0.1 2024-12-19 21:48:29 +00:00
renovate[bot] 9d2201066a build(deps): update rust crate clap_complete to 4.5.40 2024-12-17 18:40:46 +00:00
renovate[bot] 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
renovate[bot] 00d3b00d60 build(deps): update rust crate clap_complete to 4.5.39 2024-12-16 19:09:49 +00:00
renovate[bot] 2acb479016 build(deps): lock file maintenance 2024-12-16 00:18:46 +00:00
renovate[bot] 44941823da build(deps): update rust crate systemstat to v0.2.4 2024-12-14 18:34:02 +00:00
renovate[bot] dbcabdc160 build(deps): update rust crate shadow-rs to 0.36.1 2024-12-13 17:05:02 +00:00
renovate[bot] 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
renovate[bot] ca873bc3d1 build(deps): update crate-ci/typos action to v1.28.3 2024-12-12 23:02:24 +00:00
renovate[bot] 0a6b44ca9f build(deps): update rust crate serde to 1.0.216 2024-12-11 04:46:27 +00:00
renovate[bot] 9e06bb73f7 build(deps): update rust crate chrono to 0.4.39 2024-12-09 10:59:21 +00:00
renovate[bot] 49a6a45d1c build(deps): lock file maintenance 2024-12-09 02:00:18 +00:00
Qiming Xu c15c75f7a5 docs(preset): add buf symbol to plain text symbols preset (#6427) 2024-12-07 18:10:13 +01:00
renovate[bot] e6f4a7d30e build(deps): update pest crates to 2.7.15 2024-12-07 05:24:18 +00:00
renovate[bot] 5e7b4ad408 build(deps): update rust crate clap to 4.5.23 2024-12-06 00:46:22 +00:00
renovate[bot] 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
renovate[bot] b23437c6c4 build(deps): update rust crate clap to 4.5.22 2024-12-03 22:41:25 +00:00
renovate[bot] a4e013cc76 build(deps): update crate-ci/typos action to v1.28.2 2024-12-02 18:06:33 +00:00
renovate[bot] 333706caf4 build(deps): lock file maintenance (#6423)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 05:02:48 +00:00
renovate[bot] c24c1f534c build(deps): update dependency dprint/dprint-plugin-typescript to v0.93.3 2024-12-02 00:31:53 +00:00
renovate[bot] 777a050759 build(deps): update rust crate terminal_size to 0.4.1 (#6420)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-01 22:20:48 +00:00
renovate[bot] 4f09f17cfb build(deps): update rust crate indexmap to 2.7.0 2024-12-01 03:56:38 +00:00
renovate[bot] 1fca32fa97 build(deps): update rust crate os_info to 3.9.0 2024-11-30 15:52:53 +00:00
renovate[bot] 61c860e129 build(deps): update embarkstudios/cargo-deny-action action to v2.0.3 2024-11-28 15:15:47 +00:00
renovate[bot] ba8245904f build(deps): update crate-ci/typos action to v1.28.1 2024-11-26 19:33:15 +00:00
renovate[bot] ddfea65bbb build(deps): update crate-ci/typos action to v1.28.0 2024-11-25 22:15:13 +00:00
renovate[bot] 5577e4136c build(deps): lock file maintenance 2024-11-25 01:53:00 +00:00
Poliorcetics 8a38b8f6f1 fix(status): add trailing space to pipestatus_format (#6404) 2024-11-24 19:13:35 +01:00
renovate[bot] 22219727be build(deps): update gitoxide crates 2024-11-24 10:19:16 +00:00
renovate[bot] 862d8c3ea7 build(deps): update embarkstudios/cargo-deny-action action to v2.0.2 2024-11-21 08:35:13 +00:00
renovate[bot] d00e96cc59 build(deps): update mislav/bump-homebrew-formula-action action to v3.2 2024-11-19 19:41:14 +00:00
renovate[bot] 2e75029a01 build(deps): lock file maintenance (#6408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-18 05:04:29 +00:00
renovate[bot] 8bd9cacfdd build(deps): update rust crate mockall to 0.13.1 (#6407)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-18 05:04:16 +00:00
renovate[bot] 305acac2bd build(deps): update rust crate quick-xml to 0.37.1 2024-11-17 21:15:26 +00:00
renovate[bot] fccf4ccebf build(deps): update rust crate serde_json to 1.0.133 2024-11-17 04:13:23 +00:00
David Knaack 85d3fb2e2a fix(fish): restore support for fish <v3.4.0 (#6337) 2024-11-15 09:46:42 +09:00
renovate[bot] 8c383b4ecd build(deps): update rust crate open to 5.3.1 2024-11-14 20:02:22 +00:00
renovate[bot] b4bec448df build(deps): update rust crate shadow-rs to 0.36.0 2024-11-14 03:23:20 +00:00
renovate[bot] e14b3b100a build(deps): update clap crates 2024-11-13 19:19:33 +00:00
renovate[bot] cb785c4df5 build(deps): update rust crate serde to 1.0.215 2024-11-11 22:36:04 +00:00
renovate[bot] af08ab4ce1 build(deps): update dependency vitepress to ^1.5.0 (#6386)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 04:05:05 +00:00
renovate[bot] 5026969dfe build(deps): update dependency dprint/dprint-plugin-typescript to v0.93.2 2024-11-11 01:09:02 +00:00
Balthild 576aa14d15 fix(init): do not use cygpath for elvish (#6376) 2024-11-09 14:08:36 +01:00
Chiffa 639c7c6285 test(username): Default to false for is_root_user() regardless of the OS (#6358)
Default to false for tests regardless of the OS

Checking for username along with cfg!(test) seems redundant, especially because of one edge case - root user can be renamed
2024-11-09 14:06:58 +01:00
renovate[bot] 90721faa0b build(deps): update crate-ci/typos action to v1.27.3 2024-11-08 17:16:26 +00:00
renovate[bot] 531803f375 build(deps): update rust crate tempfile to 3.14.0 2024-11-08 03:12:25 +00:00
renovate[bot] 4ce7931627 build(deps): update crate-ci/typos action to v1.27.2 2024-11-06 21:39:12 +00:00
renovate[bot] 0eae051f9f build(deps): update crate-ci/typos action to v1.27.1 2024-11-06 16:42:45 +00:00
Jake Wharton 9e72ef0a58 docs: Use inline code for Odin module name (#6359)
Use inline code for Odin module name

This matches all other modules.
2024-11-04 22:22:34 +01:00
renovate[bot] c261c6eca3 build(deps): update rust crate clap_complete to 4.5.37 2024-11-04 21:21:39 +00:00
renovate[bot] ba83af7fab build(deps): update rust crate which to v7 (#6368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-04 22:21:16 +01:00
renovate[bot] abb091a4d4 build(deps): update dependency vitepress to ^1.4.5 2024-11-04 03:26:28 +00:00
renovate[bot] 20d5a470c2 build(deps): update dependency dprint/dprint-plugin-typescript to v0.93.1 2024-11-04 01:56:18 +00:00
renovate[bot] 9d0dbcb691 build(deps): update crate-ci/typos action to v1.27.0 2024-11-03 01:15:01 +00:00
renovate[bot] 34f70a51d2 build(deps): update rust crate clap_complete to 4.5.36 2024-10-29 19:04:12 +00:00
renovate[bot] 44140502f3 build(deps): update rust crate serde to 1.0.214 2024-10-28 18:31:28 +00:00
renovate[bot] e67df0a7a5 build(deps): update rust crate shadow-rs to 0.35.2 2024-10-28 06:23:58 +00:00
renovate[bot] 62cc2d54c1 build(deps): lock file maintenance 2024-10-28 04:19:49 +00:00
renovate[bot] af8890e370 build(deps): update rust crate quick-xml to 0.37.0 2024-10-28 02:13:14 +00:00
renovate[bot] 8b6177c728 build(deps): update crate-ci/typos action to v1.26.8 2024-10-24 21:03:47 +00:00
renovate[bot] 842488f9e7 build(deps): update rust crate regex to 1.11.1 2024-10-24 16:37:09 +00:00
renovate[bot] 52a38c48ae build(deps): update rust crate clap_complete to 4.5.35 2024-10-24 04:16:27 +00:00
renovate[bot] 3974ce4505 build(deps): update gitoxide crates 2024-10-24 01:58:15 +00:00
renovate[bot] 426c34ad14 build(deps): update crate-ci/typos action to v1.26.1 2024-10-24 01:56:52 +00:00
renovate[bot] dbb0192634 build(deps): update rust crate serde to 1.0.213 2024-10-22 19:01:16 +00:00
renovate[bot] ecd23882b3 build(deps): update rust crate serde to 1.0.211 2024-10-22 07:27:34 +00:00
renovate[bot] 1eb900a665 build(deps): update dependency dprint/dprint-plugin-json to v0.19.4 2024-10-21 22:43:58 +00:00
renovate[bot] eaccc512f2 build(deps): lock file maintenance 2024-10-21 00:49:45 +00:00
renovate[bot] 506a310a9e build(deps): update rust crate serde_json to 1.0.132 2024-10-19 19:49:32 +00:00
renovate[bot] 4ecd327fb1 build(deps): update rust crate serde_json to 1.0.131 2024-10-18 23:37:23 +00:00
135 changed files with 1994 additions and 1229 deletions
+3 -3
View File
@@ -25,9 +25,9 @@
"target/"
],
"plugins": [
"https://github.com/dprint/dprint-plugin-typescript/releases/download/0.93.0/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.3/plugin.wasm",
"https://github.com/dprint/dprint-plugin-typescript/releases/download/0.93.3/plugin.wasm",
"https://github.com/dprint/dprint-plugin-json/releases/download/0.19.4/plugin.wasm",
"https://github.com/dprint/dprint-plugin-markdown/releases/download/0.17.8/plugin.wasm",
"https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.3/plugin.wasm"
"https://github.com/dprint/dprint-plugin-toml/releases/download/0.6.4/plugin.wasm"
]
}
+34 -2
View File
@@ -87,6 +87,7 @@
"default": {
"detect_extensions": [],
"detect_files": [
"bun.lock",
"bun.lockb",
"bunfig.toml"
],
@@ -359,6 +360,9 @@
"default": {
"allowed_msg": "allowed",
"denied_msg": "denied",
"detect_env_vars": [
"DIRENV_FILE"
],
"detect_extensions": [],
"detect_files": [
".envrc"
@@ -1248,6 +1252,7 @@
"Android": "🤖 ",
"Arch": "🎗️ ",
"Artix": "🎗️ ",
"CachyOS": "🎗️ ",
"CentOS": "💠 ",
"Debian": "🌀 ",
"DragonFly": "🐉 ",
@@ -1269,6 +1274,7 @@
"Mint": "🌿 ",
"NetBSD": "🚩 ",
"NixOS": "❄️ ",
"Nobara": "🎩 ",
"OpenBSD": "🐡 ",
"OpenCloudOS": "☁️ ",
"OracleLinux": "🦴 ",
@@ -1283,6 +1289,7 @@
"Ubuntu": "🎯 ",
"Ultramarine": "🔷 ",
"Unknown": "❓ ",
"Uos": "🐲 ",
"Void": " ",
"Windows": "🪟 ",
"openEuler": "🦉 ",
@@ -1715,7 +1722,7 @@
"not_executable_symbol": "🚫",
"not_found_symbol": "🔍",
"pipestatus": false,
"pipestatus_format": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)",
"pipestatus_format": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ",
"pipestatus_separator": "|",
"recognize_signal_code": true,
"sigint_symbol": "🧱",
@@ -2222,6 +2229,7 @@
},
"detect_files": {
"default": [
"bun.lock",
"bun.lockb",
"bunfig.toml"
],
@@ -2868,6 +2876,15 @@
"type": "string"
}
},
"detect_env_vars": {
"default": [
"DIRENV_FILE"
],
"type": "array",
"items": {
"type": "string"
}
},
"detect_files": {
"default": [
".envrc"
@@ -4950,6 +4967,7 @@
"Android": "🤖 ",
"Arch": "🎗️ ",
"Artix": "🎗️ ",
"CachyOS": "🎗️ ",
"CentOS": "💠 ",
"Debian": "🌀 ",
"DragonFly": "🐉 ",
@@ -4971,6 +4989,7 @@
"Mint": "🌿 ",
"NetBSD": "🚩 ",
"NixOS": "❄️ ",
"Nobara": "🎩 ",
"OpenBSD": "🐡 ",
"OpenCloudOS": "☁️ ",
"OracleLinux": "🦴 ",
@@ -4985,6 +5004,7 @@
"Ubuntu": "🎯 ",
"Ultramarine": "🔷 ",
"Unknown": "❓ ",
"Uos": "🐲 ",
"Void": " ",
"Windows": "🪟 ",
"openEuler": "🦉 ",
@@ -5989,6 +6009,18 @@
"default": "bold red",
"type": "string"
},
"success_style": {
"type": [
"string",
"null"
]
},
"failure_style": {
"type": [
"string",
"null"
]
},
"map_symbol": {
"default": false,
"type": "boolean"
@@ -6006,7 +6038,7 @@
"type": "string"
},
"pipestatus_format": {
"default": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)",
"default": "\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ",
"type": "string"
},
"pipestatus_segment_format": {
+1 -1
View File
@@ -327,7 +327,7 @@ jobs:
needs: [release_please, upload_artifacts]
if: ${{ needs.release_please.outputs.release_created == 'true' }}
steps:
- uses: mislav/bump-homebrew-formula-action@v3.1
- uses: mislav/bump-homebrew-formula-action@v3.2
with:
formula-name: starship
tag-name: ${{ needs.release_please.outputs.tag_name }}
+1 -1
View File
@@ -24,6 +24,6 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Test | Security Audit
uses: EmbarkStudios/cargo-deny-action@v2.0.1
uses: EmbarkStudios/cargo-deny-action@v2.0.4
with:
command: check ${{ matrix.checks }}
+1 -1
View File
@@ -7,4 +7,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.26.0
- uses: crate-ci/typos@v1.29.4
+21
View File
@@ -1,5 +1,26 @@
# Changelog
## [1.22.0](https://github.com/starship/starship/compare/v1.21.1...v1.22.0) (2025-01-11)
### Features
* **battery:** Use best match instead of first match for `battery.display` threshold ([#6442](https://github.com/starship/starship/issues/6442)) ([2690a32](https://github.com/starship/starship/commit/2690a329cf9a6b4a160d024674193007fb292e1a))
* **bun:** Detect bun using new text-format lockfile ([#6441](https://github.com/starship/starship/issues/6441)) ([2df521c](https://github.com/starship/starship/commit/2df521c69b0b1400edee7b7b332b5e2a900c7775))
* **direnv:** allow direnv to detect environment variables ([#6196](https://github.com/starship/starship/issues/6196)) ([4593716](https://github.com/starship/starship/commit/45937166c8b3cb53f09b29c65d0f547aa7f2f022))
* **status:** add `{success,failure}_style` options ([#6269](https://github.com/starship/starship/issues/6269)) ([e21775c](https://github.com/starship/starship/commit/e21775c694a81cf092eafa3c9a7b169ae9c8ebf2))
### Bug Fixes
* **fish:** restore support for fish &lt;v3.4.0 ([#6337](https://github.com/starship/starship/issues/6337)) ([85d3fb2](https://github.com/starship/starship/commit/85d3fb2e2ab96e639fe6b67ba1afbb94b6c5b83e))
* handle variable bash $SHLVL behavior with explicit option ([#4912](https://github.com/starship/starship/issues/4912)) ([7ead2b5](https://github.com/starship/starship/commit/7ead2b55eb58a878dc3ea8d87204f84862bd8148))
* **hostname:** use DNS instead of NetBIOS name on Windows ([#6343](https://github.com/starship/starship/issues/6343)) ([43f097e](https://github.com/starship/starship/commit/43f097eae838c1fba52659113826669802081918))
* **init/pwsh:** preserve ViModeChangeHandler ([#6225](https://github.com/starship/starship/issues/6225)) ([9b6d394](https://github.com/starship/starship/commit/9b6d394e01d50db4395cfe402531bfd96c540462))
* **init:** do not use cygpath for elvish ([#6376](https://github.com/starship/starship/issues/6376)) ([576aa14](https://github.com/starship/starship/commit/576aa14d15f57abf7d1c28e3486f2682e45c2f62))
* **status:** add trailing space to `pipestatus_format` ([#6404](https://github.com/starship/starship/issues/6404)) ([8a38b8f](https://github.com/starship/starship/commit/8a38b8f6f19fa6f17098e32f22183beac0498764))
* **username:** avoid using `whoami` on android ([#6342](https://github.com/starship/starship/issues/6342)) ([af5d139](https://github.com/starship/starship/commit/af5d139060bbb60690196dc53e05424ac3c0fb5d)), closes [#6340](https://github.com/starship/starship/issues/6340)
## [1.21.1](https://github.com/starship/starship/compare/v1.21.0...v1.21.1) (2024-10-18)
Generated
+969 -367
View File
File diff suppressed because it is too large Load Diff
+26 -26
View File
@@ -1,6 +1,6 @@
[package]
name = "starship"
version = "1.21.1"
version = "1.22.0"
authors = ["Starship Contributors"]
build = "build.rs"
categories = ["command-line-utilities"]
@@ -42,55 +42,55 @@ gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
[dependencies]
chrono = { version = "0.4.38", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.5.20", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.5.33"
chrono = { version = "0.4.39", default-features = false, features = ["clock", "std", "wasmbind"] }
clap = { version = "4.5.26", features = ["derive", "cargo", "unicode"] }
clap_complete = "4.5.42"
dirs = "5.0.1"
dunce = "1.0.5"
# default feature restriction addresses https://github.com/starship/starship/issues/4251
gix = { version = "0.66.0", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.38.2", optional = true }
indexmap = { version = "2.6.0", features = ["serde"] }
log = { version = "0.4.22", features = ["std"] }
gix = { version = "0.69.1", default-features = false, features = ["max-performance-safe", "revision"] }
gix-features = { version = "0.39.1", optional = true }
indexmap = { version = "2.7.0", features = ["serde"] }
log = { version = "0.4.24", features = ["std"] }
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
# see: https://github.com/NixOS/nixpkgs/issues/160876
notify-rust = { version = "4.11.3", optional = true }
nu-ansi-term = "0.50.1"
open = "5.3.0"
open = "5.3.2"
# update os module config and tests when upgrading os_info
os_info = "3.8.2"
os_info = "3.9.2"
path-slash = "0.2.1"
pest = "2.7.14"
pest_derive = "2.7.14"
pest = "2.7.15"
pest_derive = "2.7.15"
process_control = "5.0.0"
quick-xml = "0.36.2"
quick-xml = "0.37.2"
rand = "0.8.5"
rayon = "1.10.0"
regex = { version = "1.11.0", default-features = false, features = ["perf", "std", "unicode-perl"] }
regex = { version = "1.11.1", default-features = false, features = ["perf", "std", "unicode-perl"] }
rust-ini = "0.21.1"
semver = "1.0.23"
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.129"
semver = "1.0.24"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.135"
sha1 = "0.10.6"
shadow-rs = { version = "0.35.1", default-features = false }
shadow-rs = { version = "0.37.0", default-features = false }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.10.0", optional = true }
strsim = "0.11.1"
systemstat = "=0.2.3"
terminal_size = "0.4.0"
systemstat = "=0.2.4"
terminal_size = "0.4.1"
toml = { version = "0.8.19", features = ["preserve_order"] }
toml_edit = "0.22.22"
unicode-segmentation = "1.12.0"
unicode-width = "0.2.0"
urlencoding = "2.1.3"
versions = "6.3.2"
which = "6.0.3"
which = "7.0.1"
whoami = { version = "1.5.2", default-features = false }
yaml-rust2 = "0.9.0"
guess_host_triple = "0.1.4"
home = "0.5.9"
home = "0.5.11"
shell-words = "1.1.0"
[dependencies.schemars]
@@ -102,7 +102,7 @@ features = ["preserve_order", "indexmap2"]
deelevate = "0.2.0"
[target.'cfg(windows)'.dependencies.windows]
version = "0.58.0"
version = "0.59.0"
features = [
"Win32_Foundation",
"Win32_UI_Shell",
@@ -115,15 +115,15 @@ features = [
nix = { version = "0.29.0", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies]
shadow-rs = { version = "0.35.1", default-features = false }
shadow-rs = { version = "0.37.0", default-features = false }
dunce = "1.0.5"
[target.'cfg(windows)'.build-dependencies]
winres = "0.1.12"
[dev-dependencies]
mockall = "0.13.0"
tempfile = "3.13.0"
mockall = "0.13.1"
tempfile = "3.15.0"
[profile.release]
codegen-units = 1
+4 -10
View File
@@ -339,20 +339,14 @@ eval $(starship init ion)
<details>
<summary>Nushell</summary>
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
```
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
```sh
use ~/.cache/starship/init.nu
```
Note: Only Nushell v0.78+ is supported
Note: Only Nushell v0.96+ is supported
</details>
+3 -1
View File
@@ -5,7 +5,9 @@ use std::io::Write;
use shadow_rs::SdResult;
fn main() -> SdResult<()> {
shadow_rs::new_hook(gen_presets_hook)?;
shadow_rs::ShadowBuilder::builder()
.hook(gen_presets_hook)
.build()?;
#[cfg(windows)]
{
+4 -10
View File
@@ -154,21 +154,15 @@ onMounted(() => {
::: warning
This will change in the future.
Only Nushell v0.78+ is supported.
Only Nushell v0.96+ is supported.
:::
Add the following to the end of your Nushell env file (find it by running `$nu.env-path` in Nushell):
Add the following to the end of your Nushell configuration (find it by running `$nu.config-path` in Nushell):
```sh
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu
```
And add the following to the end of your Nushell configuration (find it by running `$nu.config-path`):
```sh
use ~/.cache/starship/init.nu
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
```
#### Xonsh
+61 -54
View File
@@ -618,21 +618,22 @@ symbol = '🦬 '
The `bun` module shows the currently installed version of the [bun](https://bun.sh) JavaScript runtime.
By default the module will be shown if any of the following conditions are met:
- The current directory contains a `bun.lock` file
- The current directory contains a `bun.lockb` file
- The current directory contains a `bunfig.toml` file
### Options
| Option | Default | Description |
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `'bold red'` | The style for the module. |
| `disabled` | `false` | Disables the `bun` module. |
| Option | Default | Description |
| ------------------- | ------------------------------------------ | ------------------------------------------------------------------------- |
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
| `symbol` | `'🥟 '` | A format string representing the symbol of Bun. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['bun.lock', 'bun.lockb', 'bunfig.toml']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `style` | `'bold red'` | The style for the module. |
| `disabled` | `false` | Disables the `bun` module. |
### Variables
@@ -1227,20 +1228,21 @@ The `direnv` module shows the status of the current rc file if one is present. T
### Options
| Option | Default | Description |
| ------------------- | -------------------------------------- | ----------------------------------------------------- |
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
| `style` | `'bold orange'` | The style for the module. |
| `disabled` | `true` | Disables the `direnv` module. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
| Option | Default | Description |
| ------------------- | -------------------------------------- | ------------------------------------------------------- |
| `format` | `'[$symbol$loaded/$allowed]($style) '` | The format for the module. |
| `symbol` | `'direnv '` | The symbol used before displaying the direnv context. |
| `style` | `'bold orange'` | The style for the module. |
| `disabled` | `true` | Disables the `direnv` module. |
| `detect_extensions` | `[]` | Which extensions should trigger this module. |
| `detect_files` | `['.envrc']` | Which filenames should trigger this module. |
| `detect_folders` | `[]` | Which folders should trigger this module. |
| `detect_env_vars` | `['DIRENV_FILE']` | Which environment variables should trigger this module. |
| `allowed_msg` | `'allowed'` | The message displayed when an rc file is allowed. |
| `not_allowed_msg` | `'not allowed'` | The message displayed when an rc file is not_allowed. |
| `denied_msg` | `'denied'` | The message displayed when an rc file is denied. |
| `loaded_msg` | `'loaded'` | The message displayed when an rc file is loaded. |
| `unloaded_msg` | `'not loaded'` | The message displayed when an rc file is not loaded. |
### Variables
@@ -3190,7 +3192,7 @@ format = 'via [🐪 $version]($style) '
## Odin
The 'odin' module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
The `odin` module shows the currently installed version of [Odin](https://odin-lang.org/). By default the module will be shown if the current directory contains a `.odin` file.
### Options
@@ -3343,6 +3345,7 @@ Amazon = "🙂 "
Android = "🤖 "
Arch = "🎗️ "
Artix = "🎗️ "
CachyOS = "🎗️ "
CentOS = "💠 "
Debian = "🌀 "
DragonFly = "🐉 "
@@ -3364,6 +3367,7 @@ MidnightBSD = "🌘 "
Mint = "🌿 "
NetBSD = "🚩 "
NixOS = "❄️ "
Nobara = "🎩 "
OpenBSD = "🐡 "
OpenCloudOS = "☁️ "
openEuler = "🦉 "
@@ -3380,6 +3384,7 @@ SUSE = "🦎 "
Ubuntu = "🎯 "
Ultramarine = "🔷 "
Unknown = "❓ "
Uos = "🐲 "
Void = " "
Windows = "🪟 "
```
@@ -4272,38 +4277,40 @@ To enable it, set `disabled` to `false` in your configuration file.
### Options
| Option | Default | Description |
| --------------------------- | ----------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| `format` | `'[$symbol$status]($style) '` | The format of the module |
| `symbol` | `'❌'` | The symbol displayed on program error |
| `success_symbol` | `''` | The symbol displayed on program success |
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
| `style` | `'bold red'` | The style for the module. |
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
| `map_symbol` | `false` | Enable symbols mapping from exit code |
| `pipestatus` | `false` | Enable pipestatus reporting |
| `pipestatus_separator` | <code>&vert;</code> | The symbol used to separate pipestatus segments (supports formatting) |
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style)'` | The format of the module when the command is a pipeline |
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
| `disabled` | `true` | Disables the `status` module. |
| Option | Default | Description |
| --------------------------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| `format` | `'[$symbol$status]($style) '` | The format of the module |
| `symbol` | `'❌'` | The symbol displayed on program error |
| `success_symbol` | `''` | The symbol displayed on program success |
| `not_executable_symbol` | `'🚫'` | The symbol displayed when file isn't executable |
| `not_found_symbol` | `'🔍'` | The symbol displayed when the command can't be found |
| `sigint_symbol` | `'🧱'` | The symbol displayed on SIGINT (Ctrl + c) |
| `signal_symbol` | `'⚡'` | The symbol displayed on any signal |
| `style` | `'bold red'` | The style for the module. |
| `success_style` | | The style used on program success (defaults to `style` if unset). |
| `failure_style` | | The style used on program failure (defaults to `style` if unset). |
| `recognize_signal_code` | `true` | Enable signal mapping from exit code |
| `map_symbol` | `false` | Enable symbols mapping from exit code |
| `pipestatus` | `false` | Enable pipestatus reporting |
| `pipestatus_separator` | <code>&vert;</code> | The symbol used to separate pipestatus segments (supports formatting) |
| `pipestatus_format` | `'\[$pipestatus\] => [$symbol$common_meaning$signal_name$maybe_int]($style) '` | The format of the module when the command is a pipeline |
| `pipestatus_segment_format` | | When specified, replaces `format` when formatting pipestatus segments |
| `disabled` | `true` | Disables the `status` module. |
### Variables
| Variable | Example | Description |
| -------------- | ------- | ------------------------------------------------------------------------------------------ |
| status | `127` | The exit code of the last command |
| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
| maybe_int | `7` | Contains the exit code number when no meaning has been found |
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `style` |
| Variable | Example | Description |
| -------------- | ------- | -------------------------------------------------------------------------------------------- |
| status | `127` | The exit code of the last command |
| hex_status | `0x7F` | The exit code of the last command in hex |
| int | `127` | The exit code of the last command |
| common_meaning | `ERROR` | Meaning of the code if not a signal |
| signal_number | `9` | Signal number corresponding to the exit code, only if signalled |
| signal_name | `KILL` | Name of the signal corresponding to the exit code, only if signalled |
| maybe_int | `7` | Contains the exit code number when no meaning has been found |
| pipestatus | | Rendering of in pipeline programs' exit codes, this is only available in pipestatus_format |
| symbol | | Mirrors the value of option `symbol` |
| style\* | | Mirrors the value of option `success_style` on program success and `failure_style` otherwise |
*: This variable can only be used as a part of a style string
+564 -602
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -5,6 +5,6 @@
"preview": "vitepress preview"
},
"devDependencies": {
"vitepress": "^1.4.1"
"vitepress": "^1.5.0"
}
}
@@ -7,6 +7,9 @@ symbol = " "
[c]
symbol = " "
[cmake]
symbol = " "
[conda]
symbol = " "
@@ -96,6 +99,7 @@ Amazon = " "
Android = " "
Arch = " "
Artix = " "
CachyOS = " "
CentOS = " "
Debian = " "
DragonFly = " "
@@ -117,6 +121,7 @@ MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
Nobara = " "
OpenBSD = "󰈺 "
openSUSE = " "
OracleLinux = "󰌷 "
@@ -19,6 +19,9 @@ symbol = "aws "
[azure]
symbol = "az "
[buf]
symbol = "buf "
[bun]
symbol = "bun "
@@ -133,6 +136,7 @@ Amazon = "amz "
Android = "andr "
Arch = "rch "
Artix = "atx "
CachyOS = "cach "
CentOS = "cent "
Debian = "deb "
DragonFly = "dfbsd "
@@ -154,6 +158,7 @@ MidnightBSD = "mid "
Mint = "mint "
NetBSD = "nbsd "
NixOS = "nix "
Nobara = "nbra "
OpenBSD = "obsd "
OpenCloudOS = "ocos "
openEuler = "oeul "
@@ -170,6 +175,7 @@ SUSE = "suse "
Ubuntu = "ubnt "
Ultramarine = "ultm "
Unknown = "unk "
Uos = "uos "
Void = "void "
Windows = "win "
+3 -6
View File
@@ -351,13 +351,10 @@ print_install() {
nushell )
# shellcheck disable=SC2088
config_file="${BOLD}your nu config file${NO_COLOR} (find it by running ${BOLD}\$nu.config-path${NO_COLOR} in Nushell)"
config_cmd="use ~/.cache/starship/init.nu"
config_cmd="mkdir (\$nu.data-dir | path join \"vendor/autoload\")
starship init nu | save -f (\$nu.data-dir | path join \"vendor/autoload/starship.nu\")"
warning="${warning} This will change in the future.
Only Nushell v0.78 or higher is supported.
Add the following to the end of ${BOLD}your Nushell env file${NO_COLOR} (find it by running ${BOLD}\$nu.env-path${NO_COLOR} in Nushell):
mkdir ~/.cache/starship
starship init nu | save -f ~/.cache/starship/init.nu"
Only Nushell v0.96 or higher is supported."
;;
esac
printf " %s\n %s\n And add the following to the end of %s:\n\n\t%s\n\n" \
+1 -1
View File
@@ -49,7 +49,7 @@ pub struct AwsConfig<'a> {
pub force_display: bool,
}
impl<'a> Default for AwsConfig<'a> {
impl Default for AwsConfig<'_> {
fn default() -> Self {
AwsConfig {
format: "on [$symbol($profile )(\\($region\\) )(\\[$duration\\] )]($style)",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct AzureConfig<'a> {
pub subscription_aliases: HashMap<String, &'a str>,
}
impl<'a> Default for AzureConfig<'a> {
impl Default for AzureConfig<'_> {
fn default() -> Self {
AzureConfig {
format: "on [$symbol($subscription)]($style) ",
+2 -2
View File
@@ -19,7 +19,7 @@ pub struct BatteryConfig<'a> {
pub format: &'a str,
}
impl<'a> Default for BatteryConfig<'a> {
impl Default for BatteryConfig<'_> {
fn default() -> Self {
BatteryConfig {
full_symbol: "󰁹 ",
@@ -48,7 +48,7 @@ pub struct BatteryDisplayConfig<'a> {
pub discharging_symbol: Option<&'a str>,
}
impl<'a> Default for BatteryDisplayConfig<'a> {
impl Default for BatteryDisplayConfig<'_> {
fn default() -> Self {
BatteryDisplayConfig {
threshold: 10,
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct BufConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for BufConfig<'a> {
impl Default for BufConfig<'_> {
fn default() -> Self {
BufConfig {
format: "with [$symbol($version )]($style)",
+2 -2
View File
@@ -18,7 +18,7 @@ pub struct BunConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for BunConfig<'a> {
impl Default for BunConfig<'_> {
fn default() -> Self {
BunConfig {
format: "via [$symbol($version )]($style)",
@@ -27,7 +27,7 @@ impl<'a> Default for BunConfig<'a> {
style: "bold red",
disabled: false,
detect_extensions: vec![],
detect_files: vec!["bun.lockb", "bunfig.toml"],
detect_files: vec!["bun.lock", "bun.lockb", "bunfig.toml"],
detect_folders: vec![],
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct CConfig<'a> {
pub commands: Vec<Vec<&'a str>>,
}
impl<'a> Default for CConfig<'a> {
impl Default for CConfig<'_> {
fn default() -> Self {
CConfig {
format: "via [$symbol($version(-$name) )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct CharacterConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for CharacterConfig<'a> {
impl Default for CharacterConfig<'_> {
fn default() -> Self {
CharacterConfig {
format: "$symbol ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct CMakeConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for CMakeConfig<'a> {
impl Default for CMakeConfig<'_> {
fn default() -> Self {
CMakeConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct CmdDurationConfig<'a> {
pub notification_timeout: Option<u32>,
}
impl<'a> Default for CmdDurationConfig<'a> {
impl Default for CmdDurationConfig<'_> {
fn default() -> Self {
CmdDurationConfig {
min_time: 2_000,
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct CobolConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for CobolConfig<'a> {
impl Default for CobolConfig<'_> {
fn default() -> Self {
CobolConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct CondaConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for CondaConfig<'a> {
impl Default for CondaConfig<'_> {
fn default() -> Self {
CondaConfig {
truncation_length: 1,
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct ContainerConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for ContainerConfig<'a> {
impl Default for ContainerConfig<'_> {
fn default() -> Self {
ContainerConfig {
format: "[$symbol \\[$name\\]]($style) ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct CrystalConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for CrystalConfig<'a> {
impl Default for CrystalConfig<'_> {
fn default() -> Self {
CrystalConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -33,7 +33,7 @@ pub struct CustomConfig<'a> {
pub unsafe_no_escape: bool,
}
impl<'a> Default for CustomConfig<'a> {
impl Default for CustomConfig<'_> {
fn default() -> Self {
CustomConfig {
format: "[$symbol($output )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct DamlConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for DamlConfig<'a> {
impl Default for DamlConfig<'_> {
fn default() -> Self {
DamlConfig {
symbol: "Λ ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct DartConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for DartConfig<'a> {
impl Default for DartConfig<'_> {
fn default() -> Self {
DartConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct DenoConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for DenoConfig<'a> {
impl Default for DenoConfig<'_> {
fn default() -> Self {
DenoConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -28,7 +28,7 @@ pub struct DirectoryConfig<'a> {
pub use_os_path_sep: bool,
}
impl<'a> Default for DirectoryConfig<'a> {
impl Default for DirectoryConfig<'_> {
fn default() -> Self {
DirectoryConfig {
truncation_length: 3,
+3 -1
View File
@@ -13,6 +13,7 @@ pub struct DirenvConfig<'a> {
pub style: &'a str,
pub disabled: bool,
pub detect_extensions: Vec<&'a str>,
pub detect_env_vars: Vec<&'a str>,
pub detect_files: Vec<&'a str>,
pub detect_folders: Vec<&'a str>,
pub allowed_msg: &'a str,
@@ -22,7 +23,7 @@ pub struct DirenvConfig<'a> {
pub unloaded_msg: &'a str,
}
impl<'a> Default for DirenvConfig<'a> {
impl Default for DirenvConfig<'_> {
fn default() -> Self {
Self {
format: "[$symbol$loaded/$allowed]($style) ",
@@ -30,6 +31,7 @@ impl<'a> Default for DirenvConfig<'a> {
style: "bold bright-yellow",
disabled: true,
detect_extensions: vec![],
detect_env_vars: vec!["DIRENV_FILE"],
detect_files: vec![".envrc"],
detect_folders: vec![],
allowed_msg: "allowed",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct DockerContextConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for DockerContextConfig<'a> {
impl Default for DockerContextConfig<'_> {
fn default() -> Self {
DockerContextConfig {
symbol: "🐳 ",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct DotnetConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for DotnetConfig<'a> {
impl Default for DotnetConfig<'_> {
fn default() -> Self {
DotnetConfig {
format: "via [$symbol($version )(🎯 $tfm )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct ElixirConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for ElixirConfig<'a> {
impl Default for ElixirConfig<'_> {
fn default() -> Self {
ElixirConfig {
format: "via [$symbol($version \\(OTP $otp_version\\) )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct ElmConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for ElmConfig<'a> {
impl Default for ElmConfig<'_> {
fn default() -> Self {
ElmConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct EnvVarConfig<'a> {
pub description: &'a str,
}
impl<'a> Default for EnvVarConfig<'a> {
impl Default for EnvVarConfig<'_> {
fn default() -> Self {
EnvVarConfig {
symbol: "",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct ErlangConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for ErlangConfig<'a> {
impl Default for ErlangConfig<'_> {
fn default() -> Self {
ErlangConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct FennelConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for FennelConfig<'a> {
impl Default for FennelConfig<'_> {
fn default() -> Self {
FennelConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -13,7 +13,7 @@ pub struct FillConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for FillConfig<'a> {
impl Default for FillConfig<'_> {
fn default() -> Self {
FillConfig {
style: "bold black",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct FossilBranchConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for FossilBranchConfig<'a> {
impl Default for FossilBranchConfig<'_> {
fn default() -> Self {
FossilBranchConfig {
format: "on [$symbol$branch]($style) ",
+1 -1
View File
@@ -15,7 +15,7 @@ pub struct FossilMetricsConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for FossilMetricsConfig<'a> {
impl Default for FossilMetricsConfig<'_> {
fn default() -> Self {
FossilMetricsConfig {
format: "([+$added]($added_style) )([-$deleted]($deleted_style) )",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct GcloudConfig<'a> {
pub detect_env_vars: Vec<&'a str>,
}
impl<'a> Default for GcloudConfig<'a> {
impl Default for GcloudConfig<'_> {
fn default() -> Self {
GcloudConfig {
format: "on [$symbol$account(@$domain)(\\($region\\))]($style) ",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct GitBranchConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for GitBranchConfig<'a> {
impl Default for GitBranchConfig<'_> {
fn default() -> Self {
GitBranchConfig {
format: "on [$symbol$branch(:$remote_branch)]($style) ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct GitCommitConfig<'a> {
pub tag_max_candidates: usize,
}
impl<'a> Default for GitCommitConfig<'a> {
impl Default for GitCommitConfig<'_> {
fn default() -> Self {
GitCommitConfig {
// be consistent with git by default, which has DEFAULT_ABBREV set to 7
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct GitMetricsConfig<'a> {
pub ignore_submodules: bool,
}
impl<'a> Default for GitMetricsConfig<'a> {
impl Default for GitMetricsConfig<'_> {
fn default() -> Self {
GitMetricsConfig {
added_style: "bold green",
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct GitStateConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for GitStateConfig<'a> {
impl Default for GitStateConfig<'_> {
fn default() -> Self {
GitStateConfig {
rebase: "REBASING",
+1 -1
View File
@@ -28,7 +28,7 @@ pub struct GitStatusConfig<'a> {
pub windows_starship: Option<&'a str>,
}
impl<'a> Default for GitStatusConfig<'a> {
impl Default for GitStatusConfig<'_> {
fn default() -> Self {
GitStatusConfig {
format: "([\\[$all_status$ahead_behind\\]]($style) )",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct GleamConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for GleamConfig<'a> {
impl Default for GleamConfig<'_> {
fn default() -> Self {
GleamConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct GoConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for GoConfig<'a> {
impl Default for GoConfig<'_> {
fn default() -> Self {
GoConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct GradleConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for GradleConfig<'a> {
impl Default for GradleConfig<'_> {
fn default() -> Self {
GradleConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct GuixShellConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for GuixShellConfig<'a> {
impl Default for GuixShellConfig<'_> {
fn default() -> Self {
GuixShellConfig {
format: "via [$symbol]($style) ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct HaskellConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for HaskellConfig<'a> {
impl Default for HaskellConfig<'_> {
fn default() -> Self {
HaskellConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct HaxeConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for HaxeConfig<'a> {
impl Default for HaxeConfig<'_> {
fn default() -> Self {
HaxeConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct HelmConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for HelmConfig<'a> {
impl Default for HelmConfig<'_> {
fn default() -> Self {
HelmConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct HgBranchConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for HgBranchConfig<'a> {
impl Default for HgBranchConfig<'_> {
fn default() -> Self {
HgBranchConfig {
symbol: "",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct HostnameConfig<'a> {
pub aliases: IndexMap<String, &'a str>,
}
impl<'a> Default for HostnameConfig<'a> {
impl Default for HostnameConfig<'_> {
fn default() -> Self {
HostnameConfig {
ssh_only: true,
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct JavaConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for JavaConfig<'a> {
impl Default for JavaConfig<'_> {
fn default() -> Self {
JavaConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -17,7 +17,7 @@ pub struct JobsConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for JobsConfig<'a> {
impl Default for JobsConfig<'_> {
fn default() -> Self {
JobsConfig {
threshold: 1,
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct JuliaConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for JuliaConfig<'a> {
impl Default for JuliaConfig<'_> {
fn default() -> Self {
JuliaConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct KotlinConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for KotlinConfig<'a> {
impl Default for KotlinConfig<'_> {
fn default() -> Self {
KotlinConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -22,7 +22,7 @@ pub struct KubernetesConfig<'a> {
pub contexts: Vec<KubernetesContextConfig<'a>>,
}
impl<'a> Default for KubernetesConfig<'a> {
impl Default for KubernetesConfig<'_> {
fn default() -> Self {
KubernetesConfig {
symbol: "",
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct LocalipConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for LocalipConfig<'a> {
impl Default for LocalipConfig<'_> {
fn default() -> Self {
LocalipConfig {
ssh_only: true,
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct LuaConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for LuaConfig<'a> {
impl Default for LuaConfig<'_> {
fn default() -> Self {
LuaConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -15,7 +15,7 @@ pub struct MemoryConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for MemoryConfig<'a> {
impl Default for MemoryConfig<'_> {
fn default() -> Self {
MemoryConfig {
threshold: 75,
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct MesonConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for MesonConfig<'a> {
impl Default for MesonConfig<'_> {
fn default() -> Self {
MesonConfig {
truncation_length: u32::MAX,
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct MojoConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for MojoConfig<'a> {
impl Default for MojoConfig<'_> {
fn default() -> Self {
MojoConfig {
format: "with [$symbol($version )]($style)",
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct NatsConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for NatsConfig<'a> {
impl Default for NatsConfig<'_> {
fn default() -> Self {
NatsConfig {
format: "[$symbol($name )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct NimConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for NimConfig<'a> {
impl Default for NimConfig<'_> {
fn default() -> Self {
NimConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -21,7 +21,7 @@ pub struct NixShellConfig<'a> {
/* The trailing double spaces in `symbol` are needed to work around issues with
multiwidth emoji support in some shells. Please do not file a PR to change this
unless you can show that your changes do not affect this workaround. */
impl<'a> Default for NixShellConfig<'a> {
impl Default for NixShellConfig<'_> {
fn default() -> Self {
NixShellConfig {
format: "via [$symbol$state( \\($name\\))]($style) ",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct NodejsConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for NodejsConfig<'a> {
impl Default for NodejsConfig<'_> {
fn default() -> Self {
NodejsConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -20,7 +20,7 @@ pub struct OCamlConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for OCamlConfig<'a> {
impl Default for OCamlConfig<'_> {
fn default() -> Self {
OCamlConfig {
format: "via [$symbol($version )(\\($switch_indicator$switch_name\\) )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct OdinConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for OdinConfig<'a> {
impl Default for OdinConfig<'_> {
fn default() -> Self {
OdinConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct OpaConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for OpaConfig<'a> {
impl Default for OpaConfig<'_> {
fn default() -> Self {
OpaConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct OspConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for OspConfig<'a> {
impl Default for OspConfig<'_> {
fn default() -> Self {
OspConfig {
format: "on [$symbol$cloud(\\($project\\))]($style) ",
+4 -1
View File
@@ -22,7 +22,7 @@ impl<'a> OSConfig<'a> {
}
}
impl<'a> Default for OSConfig<'a> {
impl Default for OSConfig<'_> {
fn default() -> Self {
OSConfig {
format: "[$symbol]($style)",
@@ -36,6 +36,7 @@ impl<'a> Default for OSConfig<'a> {
Type::Android => "🤖 ",
Type::Arch => "🎗️ ",
Type::Artix => "🎗️ ",
Type::CachyOS => "🎗️ ",
Type::CentOS => "💠 ",
Type::Debian => "🌀 ",
Type::DragonFly => "🐉 ",
@@ -57,6 +58,7 @@ impl<'a> Default for OSConfig<'a> {
Type::Mint => "🌿 ",
Type::NetBSD => "🚩 ",
Type::NixOS => "❄️ ",
Type::Nobara => "🎩 ",
Type::OpenBSD => "🐡 ",
Type::OpenCloudOS => "☁️ ",
Type::openEuler => "🦉 ",
@@ -73,6 +75,7 @@ impl<'a> Default for OSConfig<'a> {
Type::Ubuntu => "🎯 ",
Type::Ultramarine => "🔷 ",
Type::Unknown => "",
Type::Uos => "🐲 ",
Type::Void => "",
Type::Windows => "🪟 ",
// Future symbols.
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct PackageConfig<'a> {
pub version_format: &'a str,
}
impl<'a> Default for PackageConfig<'a> {
impl Default for PackageConfig<'_> {
fn default() -> Self {
PackageConfig {
format: "is [$symbol$version]($style) ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct PerlConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for PerlConfig<'a> {
impl Default for PerlConfig<'_> {
fn default() -> Self {
PerlConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct PhpConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for PhpConfig<'a> {
impl Default for PhpConfig<'_> {
fn default() -> Self {
PhpConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct PijulConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for PijulConfig<'a> {
impl Default for PijulConfig<'_> {
fn default() -> Self {
PijulConfig {
symbol: "",
+1 -1
View File
@@ -16,7 +16,7 @@ pub struct PulumiConfig<'a> {
pub search_upwards: bool,
}
impl<'a> Default for PulumiConfig<'a> {
impl Default for PulumiConfig<'_> {
fn default() -> Self {
PulumiConfig {
format: "via [$symbol($username@)$stack]($style) ",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct PureScriptConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for PureScriptConfig<'a> {
impl Default for PureScriptConfig<'_> {
fn default() -> Self {
PureScriptConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -24,7 +24,7 @@ pub struct PythonConfig<'a> {
pub detect_env_vars: Vec<&'a str>,
}
impl<'a> Default for PythonConfig<'a> {
impl Default for PythonConfig<'_> {
fn default() -> Self {
PythonConfig {
pyenv_version_name: false,
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct QuartoConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for QuartoConfig<'a> {
impl Default for QuartoConfig<'_> {
fn default() -> Self {
QuartoConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct RakuConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for RakuConfig<'a> {
impl Default for RakuConfig<'_> {
fn default() -> Self {
RakuConfig {
format: "via [$symbol($version-$vm_version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct RedConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for RedConfig<'a> {
impl Default for RedConfig<'_> {
fn default() -> Self {
RedConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct RLangConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for RLangConfig<'a> {
impl Default for RLangConfig<'_> {
fn default() -> Self {
RLangConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct RubyConfig<'a> {
pub detect_variables: Vec<&'a str>,
}
impl<'a> Default for RubyConfig<'a> {
impl Default for RubyConfig<'_> {
fn default() -> Self {
RubyConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct RustConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for RustConfig<'a> {
impl Default for RustConfig<'_> {
fn default() -> Self {
RustConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -18,7 +18,7 @@ pub struct ScalaConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for ScalaConfig<'a> {
impl Default for ScalaConfig<'_> {
fn default() -> Self {
ScalaConfig {
format: "via [$symbol($version )]($style)",
+1 -1
View File
@@ -26,7 +26,7 @@ pub struct ShellConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for ShellConfig<'a> {
impl Default for ShellConfig<'_> {
fn default() -> Self {
ShellConfig {
format: "[$indicator]($style) ",
+1 -1
View File
@@ -17,7 +17,7 @@ pub struct ShLvlConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for ShLvlConfig<'a> {
impl Default for ShLvlConfig<'_> {
fn default() -> Self {
ShLvlConfig {
threshold: 2,
+1 -1
View File
@@ -14,7 +14,7 @@ pub struct SingularityConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for SingularityConfig<'a> {
impl Default for SingularityConfig<'_> {
fn default() -> Self {
SingularityConfig {
format: "[$symbol\\[$env\\]]($style) ",
+1 -2
View File
@@ -9,7 +9,6 @@ use crate::config::VecOr;
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct SolidityConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
@@ -22,7 +21,7 @@ pub struct SolidityConfig<'a> {
pub detect_folders: Vec<&'a str>,
}
impl<'a> Default for SolidityConfig<'a> {
impl Default for SolidityConfig<'_> {
fn default() -> Self {
SolidityConfig {
format: "via [$symbol($version)]($style)",
+1 -1
View File
@@ -15,7 +15,7 @@ pub struct SpackConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for SpackConfig<'a> {
impl Default for SpackConfig<'_> {
fn default() -> Self {
SpackConfig {
truncation_length: 1,
+8 -2
View File
@@ -16,6 +16,10 @@ pub struct StatusConfig<'a> {
pub sigint_symbol: &'a str,
pub signal_symbol: &'a str,
pub style: &'a str,
#[serde(skip_serializing_if = "Option::is_none")]
pub success_style: Option<&'a str>,
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_style: Option<&'a str>,
pub map_symbol: bool,
pub recognize_signal_code: bool,
pub pipestatus: bool,
@@ -26,7 +30,7 @@ pub struct StatusConfig<'a> {
pub disabled: bool,
}
impl<'a> Default for StatusConfig<'a> {
impl Default for StatusConfig<'_> {
fn default() -> Self {
StatusConfig {
format: "[$symbol$status]($style) ",
@@ -37,12 +41,14 @@ impl<'a> Default for StatusConfig<'a> {
sigint_symbol: "🧱",
signal_symbol: "",
style: "bold red",
success_style: None,
failure_style: None,
map_symbol: false,
recognize_signal_code: true,
pipestatus: false,
pipestatus_separator: "|",
pipestatus_format:
"\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style)",
"\\[$pipestatus\\] => [$symbol$common_meaning$signal_name$maybe_int]($style) ",
pipestatus_segment_format: None,
disabled: true,
}

Some files were not shown because too many files have changed in this diff Show More