1
0
mirror of https://github.com/starship/starship.git synced 2024-12-15 03:40:45 +01:00
Commit Graph

2516 Commits

Author SHA1 Message Date
Filip Bachul
3de96353ed Merge branch 'master' into conditional-style 2022-11-26 16:40:09 +01:00
geisterfurz007
5cfa397ef9
docs: Fix mention of Node.js in Bun docs ()
* Fix mention of Node.js in Bun docs

* Fix whitespace blunder

* Fix whitespace blunder in the other direction
2022-11-25 18:44:22 +01:00
David Knaack
8bb9038431
feat(bug-report): ask for confirmation before opening issue ()
* feat(bug-report): ask for confirmation before opening issue

* Apply suggestions from code review

Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>

Co-authored-by: Thomas O'Donnell <andytom@users.noreply.github.com>
2022-11-25 17:44:25 +01:00
David Knaack
df37e8d40c
feat(release): add chocolatey publishing ()
* feat(release): add chocolatey publishing

* change variable forwarding
2022-11-25 17:19:03 +01:00
renovate[bot]
c221c43caa build(deps): update rust crate shadow-rs to 0.18.0 2022-11-25 01:05:13 +00:00
renovate[bot]
1b63d20fb6 build(deps): update clap crates 2022-11-24 22:26:37 +00:00
renovate[bot]
d113379322 build(deps): update pest crates to 2.5.0 2022-11-24 19:54:49 +00:00
Filip Bachul
a36cdeb8dd Merge branch 'master' into conditional-style 2022-11-23 23:39:41 +01:00
Matan Kushner
47ae80b3de
docs: remove Fedora from install docs () 2022-11-22 13:15:26 -06:00
Filip Bachul
eb28f7f728 Merge branch 'master' into conditional-style 2022-11-22 16:42:10 +01:00
renovate[bot]
af4871c759 build(deps): update rust crate serde_json to 1.0.89 2022-11-22 13:12:15 +00:00
David Knaack
ac37792c19
feat(git_commit): support showing lightweight tags () 2022-11-22 10:15:31 +01:00
Filip Bachul
d78a845065 Merge branch 'master' into conditional-style 2022-11-22 09:53:10 +01:00
Marco Ieni
e4dbff0fc7
fix(ci): cache after selecting the toolchain () 2022-11-21 10:54:59 -06:00
renovate[bot]
0e1dd6f707 build(deps): update rust crate open to 3.2.0 2022-11-21 13:42:24 +00:00
Scott Palmer
a9eb65ef35
fix(java): Improved regex for Java version (starship#4610) ()
* fix(java): Improved regex for Java version (starship#4610)

* fix(java): Fixed tests and tweaked regex to accomodate Eclipse OpenJ9 (starship#4610)
2022-11-20 18:28:39 +01:00
Brahm Lower
1b03ef21f3
fix(config): unrecognized config properties don't cause config error ()
* Fix , config does not error when unrecognized properties are present

* cleanup: use stuct update syntax to improve readability

from review feedback

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

* cleanup: renamed ValueDeserializer func w/ better name

* cleanup: added test to cover unknown key retry condition

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2022-11-20 18:27:48 +01:00
Filip Bachul
0cca473e62 Merge branch 'master' into conditional-style 2022-11-19 20:08:39 +01:00
renovate[bot]
c2d3845dbb build(deps): update rust crate rayon to 1.6.0 2022-11-19 02:20:29 +00:00
renovate[bot]
8706b11f8a build(deps): update rust crate serde_json to 1.0.88 2022-11-18 12:56:49 +00:00
Filip Bachul
85e6acbd4a Merge branch 'master' into conditional-style 2022-11-18 09:35:32 +01:00
renovate[bot]
7a2f02ffd7 build(deps): update rust crate indexmap to 1.9.2 2022-11-18 01:32:59 +00:00
Filip Bachul
19390a27e6 Merge branch 'master' into conditional-style 2022-11-17 19:33:38 +01:00
renovate[bot]
c7a24633b2 build(deps): update rust crate git-repository to 0.28.0 2022-11-17 17:54:23 +00:00
renovate[bot]
655127371e build(deps): update rust crate clap to 4.0.26 2022-11-16 22:32:24 +00:00
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 () 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 () 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 ()
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 ()
* 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 ()
* 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 .

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 ()
* upgrade to git-repository v0.27

* thanks clippy
2022-11-12 17:07:49 +01:00
Archie
af63aa2af2
docs: Updated advanced-config link formatting ()
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 ()
* 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 ()
* 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 
Related 

* 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 ()
* 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 ()
* 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 () 2022-11-06 09:36:25 +01:00
David Knaack
097f48790b
docs(contributing): switch to current presets dir () 2022-11-05 18:08:53 -05:00