1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-30 20:59:13 +00:00
Commit Graph

2414 Commits

Author SHA1 Message Date
exincore
3109943822
feat: Add operating system module (#4109)
* docs(os): Add os module documentation

* docs(os): Add os to Default Prompt Format

* chore(os): Update config file schema

* feat(os): Add os entries and declarations

* feat(os): Add os module and config

* fix(os): Obey config.disabled

* feat(os): make variables 'Unknown'-aware

refactor(os): calculate variables in dedicated functions

* test(os): Add os module tests

* feat(os): make 'name' variable less 'Unknown'-aware

* docs(os): Add Preset configurations

docs(os): Use emoji as default

* feat(os): Use emoji as default

test(os): Use emoji as default

* fix(os): Add spaces after emoji symbols

* chore(os): Update config schema

* feat(os): Remove `bitness` variable

docs(os): Remove `bitness` variable

test(os): Remove `bitness` test

* feat(os): Add Cargo.toml upgrade caution for os_info

* refactor(os): Clarify get_symbol function

* docs(os): Mention supported operating systems and feature requests

* docs(os): Mention os_info inacurracy

* test(os): Remove `bitness` leftovers

* refactor(os): use nu_ansi_term

* refactor(os): add cfg_attr(schemars(deny_unknown_fields))

* chore(os): update config schema

* docs(os): expose details block

* feat(os): add garuda linux

* chore(os): update config schema

* feat(os): add case insensitivity

* feat(os): add symbols `IndexMap` use `os_info::Type` instead of `String`

* test(os): add clippy warn on new os_info::Type case

* leave missing case to test github tests

* test(os): re-add missing test case

* style(os): fix formatting

* docs(os): update to match os_info::Type serialization

- docs(os): add missing garuda to config

- test(os): mention docs updates in warn_on_os_info_update
2022-11-06 22:37:58 +01:00
Jan Klass
0ba8533e2d
docs(config): Resolve string inconsistencies (#4521)
* docs(config): Improve string and escaping information

* docs(config): Use literal strings

* docs(config): Use literal strings

* docs(config): Improve string value type description

* docs(config): Consistently use literal strings

like the documentation recommends and like `starship print-config` prints.

Resolves inconsistencies to format value on aws, container, elixir, gcloud, git_commit, git_state, git_status, kubernetes, nix_shell, openstack, python, singularity, which already uses literal strings.

Resolves inconsistency to status module pipestatus_format, which already uses literal string.

`$all` expanded list remains a non-literal multiline string for readability with escaped newlines.

* docs(config): Drop literal recommendation, describe escaped newlines
2022-11-06 22:31:12 +01:00
MatejKastak
b9596f324b
docs(config): Fix typo in kubernetes section (#4560) 2022-11-06 09:36:25 +01:00
David Knaack
097f48790b
docs(contributing): switch to current presets dir (#4460) 2022-11-05 18:08:53 -05:00
renovate[bot]
91a01561ff build(deps): update rust crate regex to 1.7.0 2022-11-05 22:37:48 +00:00
renovate[bot]
045d6bc4ec build(deps): update rust crate terminal_size to 0.2.2 2022-11-05 17:51:51 +00:00
renovate[bot]
972d7f1481 build(deps): update rust crate clap to 4.0.19 2022-11-05 15:52:00 +00:00
renovate[bot]
4c47247c47 build(deps): update pest crates to 2.4.1 2022-11-05 13:27:18 +00:00
David Knaack
6e38683c89
chore: fix new clippy lints (#4557) 2022-11-05 12:40:46 +01:00
renovate[bot]
9b64f518c9 build(deps): update rust crate systemstat to v0.2.2 2022-11-03 02:38:53 +00:00
renovate[bot]
0dea740cb3
build(deps): update xalvarez/prevent-file-change-action action to v1.3.1 (#4553)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-01 19:24:19 -05:00
Segev Finer
4d86a4c7ae
feat(preset): Add no-nerd-font preset (#4517)
* feat(preset): Add powerline-only-symbols preset

Related to #2563 & #3544

* Modify symbols for pulumi and erlang

* Change some wording and add default notification

* Update name of preset

Co-authored-by: Kevin Song <chips@ksong.dev>
2022-11-01 08:38:46 +01:00
renovate[bot]
d3cf18ffe9 build(deps): update dependency taplo-cli to 0.8.0 2022-10-31 21:16:56 +00:00
Jan Klass
fcd217c197
docs(config): Replace misleading $all reference (#4519)
In the config `$all` has special meaning, as it is and contains the default value for `format`.

Using `$all` in the example for conditional format strings with multiple variables is thus potentially misleading and confusing.
Using a neutral variable `$combined` has no conflict with other meanings and is thus preferable.
2022-10-31 09:41:28 -05:00
Felix H
14ee81b9c3
feat(package): added showing gradle version based on the gradle.properties file (#4432)
* feat: added showing gradle version based on the gradle.properties file

* fix: wouldn't return version

* fix: forgot to remove "version=" from returned version"

* fix: ran rustfmt

* fix: test now actually tests for something

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

* fix: the regex actually makes sense now

* fix: complete refactor of control flow

* Delete flake.nix

* changed order in which files are processed

Co-authored-by: BattleCh1cken <BattleCh1cken@Larkov.de>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-10-30 16:43:32 +01:00
David Knaack
d1bc982a37
chore: bump msrv to 1.64 (#4542)
* chore: bump msrv to 1.64

* clippy fix
2022-10-30 11:17:54 +01:00
renovate[bot]
cd540e7fc6 build(deps): update rust crate once_cell to 1.16.0 2022-10-29 12:27:05 +00:00
renovate[bot]
367c941665 build(deps): update rust crate gethostname to 0.4.0 2022-10-29 00:30:37 +00:00
renovate[bot]
888afbed35 build(deps): update dependency taplo-cli to 0.7.2 2022-10-25 09:37:13 +00:00
Thierry Delafontaine
d4bcc519e6
feat(guix_shell): Initial implementation (#4397)
* feat(guix_shell): Initial implementation (#3999)

* fix(guix_shell): Change guix nerd font icon to water buffalo emoji

* fix(guix_shell): Added guix_shell entries in preset files

* fix(guix_shell): Moved guix_shell config docs in to the correct place (alphabetically)
2022-10-25 07:44:04 +02:00
renovate[bot]
c3cd499a30 build(deps): update rust crate windows to 0.43.0 2022-10-25 03:24:59 +00:00
renovate[bot]
3d972d65c2 build(deps): update rust crate shadow-rs to 0.17.1 2022-10-24 04:43:04 +00:00
renovate[bot]
a40f4c9794 build(deps): update rust crate quick-xml to 0.26.0 2022-10-23 14:37:37 +00:00
Jan Klass
2db88b47b9
docs(config): Add missing default values (#4520)
* docs(config): Add missing empty table default values as empty inline tables

* docs(config): Add missing empty string default values

in shell and vcsh
2022-10-22 20:28:29 +02:00
Verdayne Graham
cdf0d12937
refactor(nu): simplify getting term width (#4503)
refactor(init,nu): simplify getting term width
2022-10-22 14:17:33 +02:00
renovate[bot]
eccd8be17e build(deps): update rust crate toml_edit to 0.15.0 2022-10-22 01:20:50 +00:00
renovate[bot]
ad2742a6ab build(deps): update rust crate serde to 1.0.147 2022-10-21 21:12:39 +00:00
renovate[bot]
9d22f2d05a build(deps): update rust crate serde to 1.0.146 2022-10-21 12:05:15 +00:00
renovate[bot]
f48302c04b build(deps): update rust crate clap to 4.0.18 2022-10-21 03:37:42 +00:00
renovate[bot]
bd9c536e0e build(deps): update rust crate serde_json to 1.0.87 2022-10-20 01:57:58 +00:00
renovate[bot]
0b173c263e build(deps): update rust crate clap_complete to 4.0.3 2022-10-19 00:20:58 +00:00
renovate[bot]
51d62ac324 build(deps): update rust crate clap to 4.0.17 2022-10-18 18:41:34 +00:00
renovate[bot]
1f6619a43e
build(deps): update swatinem/rust-cache action to v2 (#4493)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-18 14:13:12 +02:00
renovate[bot]
fc8c5cc27b build(deps): update rust crate clap to 4.0.16 2022-10-18 05:46:34 +00:00
renovate[bot]
6666c2f3af build(deps): update dependency dprint/dprint-plugin-typescript to v0.75.0 2022-10-17 04:57:36 +00:00
renovate[bot]
bbef08f582 build(deps): update rust crate shadow-rs to 0.17.0 2022-10-15 19:08:18 +00:00
Liang Yun Gong
5a2c85d078
feat(aws): add a fallback for expiration key (#4455)
* feat(aws): add a fallback for `expiration`

* fix(aws): intermittent test failures

- extend the time range from `-2s,0s` to `-5s,+2s`

* fix: `docs/config/README.md` readability

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

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-10-15 18:16:07 +02:00
AppleTheGolden
865e68da3a
feat: Open Policy Agent module (#1740) (#4441)
* feat: Open Policy Agent module (#1740)

* Format documentation

* Fix typo, `ropa` -> `rego`

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

* Update presets for OPA module

* Add extra space to OPA module symbol

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-10-15 18:15:33 +02:00
David Knaack
186d99e623
fix(status): replace multiply with cross mark emoji (#4461) 2022-10-15 14:16:39 +02:00
nibon7
49995301ce
fix(nu): remove -c parameter from term size (#4477)
The -c parameter has been removed through nushell/nushell#6651
2022-10-15 14:16:14 +02:00
Matan Kushner
74951e630e
docs(i18n): new Crowdin updates (#4355) 2022-10-14 21:53:32 -04:00
github-actions[bot]
dfc9cf6861
chore(master): release 1.11.0 (#4353)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-10-14 21:40:28 -04:00
David Knaack
33dbe84e43
build(deps): update gitoxide crates (#4470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-14 21:39:31 -04:00
renovate[bot]
459fea30a6 build(deps): update rust crate clap to 4.0.15 2022-10-14 00:36:23 +00:00
renovate[bot]
dbcea86c86 build(deps): update rust crate clap to 4.0.14 2022-10-13 10:18:59 +00:00
renovate[bot]
7f580b3a3e build(deps): update rust crate home to 0.5.4 2022-10-12 00:42:25 +00:00
renovate[bot]
b80a2b8d5c build(deps): update rust crate clap to 4.0.13 2022-10-11 21:06:43 +00:00
Ang Hao Yang
1bad35128e
docs(preset): update presets with Scala nerd font. (#4452)
* docs(preset): update presets with Scala nerd font.

* dos(preset): add an extra space after Scala symbol.

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

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-10-11 18:03:20 +02:00
Jamie
355800f814
feat(module): Add a meson devenv indicator (#4389)
* feat(module): Add a meson devenv indicator

Adds a Meson Developer Environment indicator, if the MESON_DEVENV
variable is set. Inside a `meson devenv`, the prompt will include the
current Meson project name

This also contains a new Truncate utility function, which may be adapted for other modules in the future

* docs: Add Meson to presets
2022-10-11 18:02:46 +02:00
renovate[bot]
4107031331 build(deps): update rust crate clap to 4.0.12 2022-10-10 20:15:37 +00:00