Commit Graph

2591 Commits

Author SHA1 Message Date
Filip Bachul
4a7633ea34 Merge branch 'master' into conditional-style 2022-11-16 17:42:12 +01:00
renovate[bot]
d250cd13d1 build(deps): update rust crate clap to 4.0.25 2022-11-15 21:50:20 +00:00
Filip Bachul
4984205f31 Merge branch 'master' into conditional-style 2022-11-15 21:34:06 +01:00
David Knaack
b47a4fe514
fix(container): avoid detecting WSL as a systemd-container (#4593) 2022-11-15 11:14:52 +01:00
renovate[bot]
5f9804dd6a build(deps): update rust crate clap to 4.0.24 2022-11-14 23:12:17 +00:00
Matan Kushner
b9942306f8
Add Dimension as Starship sponsor (#4607) 2022-11-15 01:29:20 +09:00
Filip Bachul
4136b2ec48 Merge branch 'master' into conditional-style 2022-11-14 09:18:29 +01:00
renovate[bot]
fe2d8621e4
build(deps): update dependency dprint/dprint-plugin-typescript to v0.78.0 (#4601)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-13 23:38:23 -06:00
Kevin Menard
cc2c8c4a54
feat(init): Use which-rs to resolve starship path
This patch uses the which crate to resolve the starship path, replacing the
current_exe() mechanism.

Co-authored-by: Kevin Song <chips@ksong.dev>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Co-authored-by: Dario Vladović <d.vladimyr@gmail.com>
2022-11-13 21:28:29 -06:00
David Knaack
d86e1c1d1c
build(deps): update rust crate chrono to 0.4.23 (#4599)
* build(deps): update rust crate chrono to 0.4.23

* chore: remove chrono deprecations

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-13 21:23:30 -06:00
林博仁(Buo-ren, Lin)
7ce09621b9
build(snap): Fix snap package not buildable in v1.11.0 (#4578)
* fix(snap): Fix missing CMake build dependency

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

* fix(snap): Use core20 for compatible versions of CMake

Fixes #4574.

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

* build(snap): Drop unused build packages

Refer-to: David Knaack comment at Snap not buildable in v1.11.0 · Issue starship#4574 · starship/starship <starship#4574 (comment)>
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>

Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2022-11-13 18:30:25 +01:00
renovate[bot]
f65861946d build(deps): update rust crate git-features to 0.23.1 2022-11-12 21:09:10 +00:00
renovate[bot]
df5a04288c build(deps): update dependency cargo-wix to 0.3.4 2022-11-12 18:38:46 +00:00
renovate[bot]
4c5e055b70 build(deps): update clap crates 2022-11-12 16:51:03 +00:00
Sebastian Thiel
a53f681e3c
build(deps): upgrade to git-repository v0.27 (#4588)
* upgrade to git-repository v0.27

* thanks clippy
2022-11-12 17:07:49 +01:00
Archie
af63aa2af2
docs: Updated advanced-config link formatting (#4585)
Updated URL formatting to reflect the rest of the page
2022-11-11 08:10:48 +01:00
renovate[bot]
0d6332f8c0 build(deps): update dprint plugins 2022-11-09 15:18:33 +00:00
Filip Bachul
66fcef5562 Merge branch 'master' into conditional-style 2022-11-07 09:01:06 +01:00
Filip Bachul
777125e645 Merge branch 'master' into conditional-style 2022-11-06 22:44:09 +01:00
Loong Wang
fd165b96cc
fix(git): check tag_disabled option (#4527)
* fix(git): check `tag_disabled` option

* Check in `map` and test fixes
2022-11-06 22:43:50 +01:00
Jan Klass
1a3d51fe76
feat(preset): Add No Empty Icons preset (#4518)
* feat(preset): Add No Empty Icons preset

When toolset files are identified by the Starship module, the default format displays the toolset icon, and additional information.

When the toolset executables are not available, the additional information (like version number) is missing. Only the toolset icon is displayed.

The No Empty Icons preset changes the format configuration to not show the toolset icons if the variables are empty - presumably because the toolset is not installed or found.

Closes #3070
Related #3248

* Remove non-version-related modules from preset

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

* Add new module opa to preset

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

* Drop unnecessary inner conditional from format

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

* Remove commit_hash_length setting from preset

* Remove undesired modules

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

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-11-06 22:39:04 +01:00
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
Filip Bachul
6f70dad200 Merge branch 'master' into conditional-style 2022-11-04 15:52:53 +01:00
renovate[bot]
9b64f518c9 build(deps): update rust crate systemstat to v0.2.2 2022-11-03 02:38:53 +00:00
Filip Bachul
eec41f55b7 Merge branch 'master' into conditional-style 2022-11-02 08:58:37 +01: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
Filip Bachul
141fcc39e2 Merge branch 'master' into conditional-style 2022-11-01 22:15:26 +01: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
Filip Bachul
2295d92c1b Merge branch 'master' into conditional-style 2022-10-31 09:13:15 +01: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
Filip Bachul
c75f6b2152 Merge branch 'master' into conditional-style 2022-10-30 10:20:15 +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
Filip Bachul
337c6ee7a0 Merge branch 'master' into conditional-style 2022-10-25 13:07:58 +02: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