mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
Compare commits
105 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 43d6ceeaab | |||
| 43f097eae8 | |||
| af5d139060 | |||
| ee6bf760d4 | |||
| dfddd999c3 | |||
| b90eab3198 | |||
| 24516d0f25 | |||
| b5e865ae7d | |||
| 3b43b6be52 | |||
| 6678c13c24 | |||
| 4e473e99ff | |||
| 8b9e860e10 | |||
| 6de7a01788 | |||
| 8829d275fb | |||
| f37b81961f | |||
| 8a435693a4 | |||
| d204259211 | |||
| 7faee3680c | |||
| 3cdb2af2a3 | |||
| a299f4c7a2 | |||
| 0521e82dc5 | |||
| 611b463e63 | |||
| fb010f1f3c | |||
| 2df521c69b | |||
| 2922ee78d2 | |||
| 2690a329cf | |||
| e21775c694 | |||
| 45937166c8 | |||
| 7ead2b55eb | |||
| 9b6d394e01 | |||
| 1f4b664cff | |||
| ba16bdab88 | |||
| 0d2edee51f | |||
| d4ba0d19e6 | |||
| c7b0b68618 | |||
| 0993b4d70d | |||
| 9d2201066a | |||
| e1a173fe42 | |||
| 00d3b00d60 | |||
| 2acb479016 | |||
| 44941823da | |||
| dbcabdc160 | |||
| d510240c18 | |||
| ca873bc3d1 | |||
| 0a6b44ca9f | |||
| 9e06bb73f7 | |||
| 49a6a45d1c | |||
| c15c75f7a5 | |||
| e6f4a7d30e | |||
| 5e7b4ad408 | |||
| de227a4458 | |||
| b23437c6c4 | |||
| a4e013cc76 | |||
| 333706caf4 | |||
| c24c1f534c | |||
| 777a050759 | |||
| 4f09f17cfb | |||
| 1fca32fa97 | |||
| 61c860e129 | |||
| ba8245904f | |||
| ddfea65bbb | |||
| 5577e4136c | |||
| 8a38b8f6f1 | |||
| 22219727be | |||
| 862d8c3ea7 | |||
| d00e96cc59 | |||
| 2e75029a01 | |||
| 8bd9cacfdd | |||
| 305acac2bd | |||
| fccf4ccebf | |||
| 85d3fb2e2a | |||
| 8c383b4ecd | |||
| b4bec448df | |||
| e14b3b100a | |||
| cb785c4df5 | |||
| af08ab4ce1 | |||
| 5026969dfe | |||
| 576aa14d15 | |||
| 639c7c6285 | |||
| 90721faa0b | |||
| 531803f375 | |||
| 4ce7931627 | |||
| 0eae051f9f | |||
| 9e72ef0a58 | |||
| c261c6eca3 | |||
| ba83af7fab | |||
| abb091a4d4 | |||
| 20d5a470c2 | |||
| 9d0dbcb691 | |||
| 34f70a51d2 | |||
| 44140502f3 | |||
| e67df0a7a5 | |||
| 62cc2d54c1 | |||
| af8890e370 | |||
| 8b6177c728 | |||
| 842488f9e7 | |||
| 52a38c48ae | |||
| 3974ce4505 | |||
| 426c34ad14 | |||
| dbb0192634 | |||
| ecd23882b3 | |||
| 1eb900a665 | |||
| eaccc512f2 | |||
| 506a310a9e | |||
| 4ecd327fb1 |
+3
-3
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <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
File diff suppressed because it is too large
Load Diff
+26
-26
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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>|</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>|</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
|
||||
|
||||
|
||||
Generated
+564
-602
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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 ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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: "🐳 ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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: "",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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) )",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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) )",
|
||||
|
||||
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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: " ",
|
||||
|
||||
@@ -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
@@ -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
@@ -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,
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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: "☸ ",
|
||||
|
||||
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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.
|
||||
|
||||
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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: " ",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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
@@ -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
@@ -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)",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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) ",
|
||||
|
||||
@@ -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)",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user