1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-13 06:27:46 +00:00
Commit Graph

444 Commits

Author SHA1 Message Date
renovate[bot]
b370322852
build(deps): update embarkstudios/cargo-deny-action action to v1.6.3 2024-04-22 17:44:06 +00:00
renovate[bot]
98d0ac8e25
build(deps): update crate-ci/typos action to v1.20.9 2024-04-16 17:24:26 +00:00
renovate[bot]
bdb1ed9cd0
build(deps): update crate-ci/typos action to v1.20.8 2024-04-12 21:57:15 +00:00
renovate[bot]
61b1801fda build(deps): update crate-ci/typos action to v1.20.7 2024-04-10 05:11:44 +00:00
renovate[bot]
2b2b9cb2b4
build(deps): update crate-ci/typos action to v1.20.5 2024-04-09 03:56:20 +00:00
Thomas O'Donnell
e3b5dff352
feat(k8s): Add detect env vars option (#4488)
* feat(k8s): Add detect env vars option

Have added the option to trigger the k8s module based on what env vars
are set, this has been done in a backwards compatible way so if nothing
is changed from the defaults the module will still behave the same way
as before. This is similar to what I did in #4486 for the python module
and if goes well I'd like to rollout to other modules.

* Update src/modules/kubernetes.rs

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

* Update src/modules/kubernetes.rs

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-04-06 15:30:19 +02:00
Alper Cugun
9c1eaddae1
feat(username): add aliases option (#5855)
* Create place to put it in the config

* Initial functional version

* Fix grammar

* Add option documentation to README

* Add test for two aliases and emoji translation

* Remove println

* Rewrite match as iflet

* Improve converting the reference

* Format file

* Try to restore autoformat of markdown

* Replace toml:Map with concrete IndexMap

* Update schema

* Add option that got lost
2024-04-05 23:57:13 +02:00
[Error_27]
335c514e9e
feat(odin): Add Odin Lang module (#5873)
* Add Odin lang module

* add utils string and remove commit number from output

* switch to new symbol because ZWJ support is rare

* add config docs

* add option to show the commit number

* fix lack of trimming

* fix formatting to comply with checks

* Add trailing newline to comply with cargo fmt

* Add new Odin test and add newline in cmd output
2024-04-05 23:56:49 +02:00
boreinhardt
34a8f7e628
feat(gleam): Add Gleam module (#5886)
Co-authored-by: benno.reinhardt <benno.reinhardt@silbury.com>
2024-04-05 23:56:15 +02:00
renovate[bot]
86235967b4 build(deps): update crate-ci/typos action to v1.20.4 2024-04-04 19:33:47 +00:00
renovate[bot]
089d6d73cb
build(deps): update crate-ci/typos action to v1.20.3 2024-04-02 18:48:47 +00:00
renovate[bot]
c4b6fd0804
build(deps): update crate-ci/typos action to v1.20.1 2024-04-02 00:03:27 +00:00
renovate[bot]
d12d9a2751
build(deps): update crate-ci/typos action to v1.20.0 2024-04-01 19:16:58 +00:00
Ramy
be4e97c2d9
fix(bun): change default icon (#5880)
* feat: change bun icon #5871

* fix: reverts docs
2024-03-30 09:38:19 +01:00
David Knaack
d5861f9f97
fix: replace all remaining paths referring to vuepress (#5859) 2024-03-24 08:03:55 +01:00
renovate[bot]
df107acc6d build(deps): update embarkstudios/cargo-deny-action action to v1.6.2 2024-03-22 14:36:33 +00:00
David Knaack
df65b2155f
feat(os): add new os symbols (#5849) 2024-03-21 12:39:28 +01:00
Virgile Andreani
0e49f04a6b
feat(quarto): Add Quarto module (#5820)
Add Quarto module

* Adapted from the Typst module
2024-03-20 22:50:12 +01:00
Mick Hohmann
b8a812b932
feat(username): add detect_env_vars as option (#5833)
* Added the option "detect_env_vars" to the `username` module

with the same functionality as in the `hostname` module.

* Fixed logic error and added test to catch it

* build(deps): update dependency vitepress to ^1.0.0-rc.45

* build(deps): update rust crate shadow-rs to 0.27.1

* Added the option "detect_env_vars" to the `username` module

with the same functionality as in the `hostname` module.

* Fixed logic error and added test to catch it

* Removed unused gix import

* Removed unused gix import, again

* Removed unused gix import. Next try

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 22:47:32 +01:00
David Knaack
aef1a3f275
feat(release): add winget arm64 push & repo sync (#5033) 2024-03-20 19:00:50 +09:00
renovate[bot]
c34e00cd3e
build(deps): update codecov/codecov-action action to v4 (#5742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-09 08:07:25 +01:00
renovate[bot]
3a4c96cb86
build(deps): update softprops/action-gh-release action to v2 (#5831)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-09 08:06:34 +01:00
renovate[bot]
59f5208325
build(deps): update embarkstudios/cargo-deny-action action to v1.6.1 2024-03-06 17:22:10 +00:00
renovate[bot]
cede42b5db
build(deps): update embarkstudios/cargo-deny-action action to v1.6.0 2024-03-05 15:07:30 +00:00
David Knaack
7485c90c9f
feat(docs): move to vitepress (#5785)
* feat(docs): move to vitepress

* change up hero styles to match existing site

* A bit more style tweaking

* Replace stylus with plain CSS

* improve unicode-range value for nerdfont

---------

Co-authored-by: Matan Kushner <hello@matchai.dev>
2024-03-03 17:55:30 +01:00
renovate[bot]
a7038a73da build(deps): update crate-ci/typos action to v1.19.0 2024-03-02 16:39:51 +00:00
David Knaack
8ab5c0bc38
build(deps): update github artifact actions to v4 (#5782) 2024-02-18 16:22:15 +09:00
renovate[bot]
07fbf063df
build(deps): update embarkstudios/cargo-deny-action action to v1.5.15 2024-02-13 12:19:30 +00:00
renovate[bot]
26375c49cf build(deps): update reviewdog/action-suggester action to v1.11.0 2024-02-08 22:27:21 +00:00
renovate[bot]
0161de8a7f
build(deps): update crate-ci/typos action to v1.18.2 2024-02-08 16:33:28 +00:00
renovate[bot]
7c3d34bce7
build(deps): update crate-ci/typos action to v1.18.1 2024-02-05 15:49:48 +00:00
renovate[bot]
c367d0089d
build(deps): update embarkstudios/cargo-deny-action action to v1.5.13 2024-02-05 09:10:03 +00:00
renovate[bot]
a77cd87289 build(deps): update crate-ci/typos action to v1.18.0 2024-02-01 19:39:13 +00:00
renovate[bot]
497f243c10
build(deps): update dependency taplo-cli to 0.9.0 2024-02-01 14:07:00 +00:00
renovate[bot]
7ec0e62ea3
build(deps): update embarkstudios/cargo-deny-action action to v1.5.12 2024-01-24 18:47:34 +00:00
renovate[bot]
aaf768d95c
build(deps): update embarkstudios/cargo-deny-action action to v1.5.11 2024-01-24 10:48:57 +00:00
renovate[bot]
ab261a6a26
build(deps): update reviewdog/action-suggester action to v1.10.0 2024-01-23 12:00:56 +00:00
renovate[bot]
80a3ecbe18 build(deps): update embarkstudios/cargo-deny-action action to v1.5.10 2024-01-22 21:16:37 +00:00
renovate[bot]
6d006132f2
build(deps): update embarkstudios/cargo-deny-action action to v1.5.9 2024-01-22 11:26:16 +00:00
renovate[bot]
8d0d68c3f0 build(deps): update crate-ci/typos action to v1.17.2 2024-01-20 23:16:12 +00:00
renovate[bot]
2f1fb8bf85
build(deps): update embarkstudios/cargo-deny-action action to v1.5.7 2024-01-20 10:12:15 +00:00
renovate[bot]
608391bab3 build(deps): update embarkstudios/cargo-deny-action action to v1.5.6 2024-01-20 01:23:23 +00:00
renovate[bot]
679fcc9c93 build(deps): update xalvarez/prevent-file-change-action action to v1.6.0 2024-01-17 22:09:18 +00:00
renovate[bot]
674c9b3415 build(deps): update crate-ci/typos action to v1.17.1 2024-01-14 13:21:18 +00:00
David Knaack
92d37f7ef6
ci(deps): move actions/checkout back to version instead of digest pin (#5474) 2024-01-07 09:05:37 +07:00
David Knaack
819045ee28
ci(release): use PAT for Merge Crowdin PR job (#5683) 2024-01-06 19:15:06 +07:00
Camron Flanders
cec111affd
fix(direnv): update to work with direnv v2.33 (#5657)
* update AllowStatus to work with direnv 2.33

direnv now returns int enum instead of boolean, https://github.com/direnv/direnv/pull/1158

* update schema

* maybe fixed the schema now

* Whoops, I inverted the flags somehow

* have coffee, fix mistaken understanding

* undo changes to tranlations

* Update docs/config/README.md

* Update src/modules/direnv.rs

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

* update test output

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-01-06 11:46:25 +01:00
renovate[bot]
de4e1fde2f
build(deps): update crate-ci/typos action to v1.17.0 2024-01-03 04:34:35 +00:00
David Knaack
89dc19214b
fix: v1.17.0 post-release fix-ups (#5660)
* chore: cargo update

* chore(fmt): ignore `bn-BD`-tl in dprint

* ci(release): downgrade node in `notarize_and_pkgbuild`

* refactor(dprint): use generic excludes for translated docs
2023-12-30 17:28:50 +01:00
renovate[bot]
9277bbd21a
build(deps): update crate-ci/typos action to v1.16.26 2023-12-27 17:00:42 +00:00
renovate[bot]
9af6670cd2
build(deps): update reviewdog/action-suggester action to v1.9.0 2023-12-20 01:54:06 +00:00
Andrew Pantuso
e47bfbabb9
feat(direnv): add new direnv module (#5157) 2023-12-17 08:22:29 +01:00
Stefan Richter
6d96df3c68
feat(aws): Adding the AWS SSO CLI env variable to profile list (#5640)
Adding the AWS SSO CLI env variable to profile list

Adding support for the profile env variable used by https://github.com/synfinatic/aws-sso-cli
2023-12-17 08:20:58 +01:00
renovate[bot]
1272ec0811
build(deps): update crate-ci/typos action to v1.16.25 2023-12-13 16:17:24 +00:00
David Knaack
17dfe4cb90
ci: update release-please to v4 (#5619)
* build(deps): update google-github-actions/release-please-action action to v4

* move `draft` option to config file

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 14:06:34 +01:00
renovate[bot]
269b9860b3
build(deps): update crate-ci/typos action to v1.16.24 2023-12-08 22:56:01 +00:00
Jan Gorecki
5267c464eb
feat: R lang packages version, remove .Rprofile from rlang detection (#5588)
* do not detect R for .Rprofile files, closes #2817

* get R package version, #5586

* update schema

* fix and simplify regex for rlang package version

* attempt to fix regex

* proper detect R packages, closes #5590

* reduce diff vs master branch
2023-11-29 07:25:40 +01:00
Gilbert Sanchez
d7a34b45f8
feat(shell): allow distinguishing between pwsh and powershell (#5478)
* Distinguish between pwsh and powershell

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2023-11-25 14:06:03 +01:00
renovate[bot]
cb6df1d142
build(deps): update xalvarez/prevent-file-change-action action to v1.5.1 2023-11-25 06:36:41 +00:00
renovate[bot]
e19aa6e7f3 build(deps): update giraffate/clippy-action digest to 94e9bd8 2023-11-23 14:57:55 +01:00
Charlotte Thomas
7b217056bd feat: add typst module
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2023-11-12 19:02:31 +01:00
renovate[bot]
183dd7daf3 build(deps): update crate-ci/typos action to v1.16.23 2023-11-07 16:42:31 +00:00
renovate[bot]
746a962020
build(deps): update crate-ci/typos action to v1.16.22 (#5502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-04 09:47:14 +01:00
Ohad Lutzky
7b851fc30e
feat(scanner): add option not to follow symlinks (#5325)
Add follow_symlinks option

Settings this to false can fix hanging on symlinks to slow/inaccessible
filesystems.
2023-11-02 09:01:09 +01:00
renovate[bot]
aaf0ca3224
build(deps): update xalvarez/prevent-file-change-action action to v1.4.0 (#5497)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-15 21:33:33 +02:00
renovate[bot]
509e61e59f
build(deps): update crate-ci/typos action to v1.16.19 (#5486)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-15 15:36:19 +02:00
renovate[bot]
97690bc75f
build(deps): update embarkstudios/cargo-deny-action action to v1.5.5 (#5473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-15 15:35:53 +02:00
renovate[bot]
7e82cb494c
build(deps): update crate-ci/typos action to v1.16.15 (#5453)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-01 09:00:19 +02:00
Kevin Song
001253cebe
ci: Fix how version is obtained for pkgbuild (#5443)
* fix: Change how starship version is determined

* Add STARSHIP_VERSION envar into CI for notarization

* More strict!

* Supress pushd/popd output

* Fix shellcheck issue with quoting
2023-10-01 08:59:34 +02:00
renovate[bot]
45e47e5c29
build(deps): update mislav/bump-homebrew-formula-action action to v3 (#5455)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-01 08:50:42 +02:00
Mick Hohmann
43b2d42cd5
feat(hostname): add detect_env_vars as option (#5196)
* Added hostname.detect_env_vars

based on the newly added context::detect_env_vars

- extended context::detect_env_vars to check for negated environment
  variables as well, analogous to the other detect modules
- made hostname.detect_env_vars only active if ssh_only is set to false
  for backwards compatibility

Co-authored-by: Dominik Sander <dsander@users.noreply.github.com>

* added clippy recommendations, removed unneeded comments

* Added new logic (suggested in https://github.com/starship/starship/pull/5196#issuecomment-1566228913)

The new `detect_env_vars` now requires either SSH_ONLY to be false or the
environment variable SSH_CONNECTION to be set, so that is will be used

* Fixed typo

* Refactored the detect_env_vars function for early returns and better readability

* Change boolean logic for better readability

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

* Apply suggestions from code review to `detect_env_vars` method.

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

* Fixed bracket error & updated comments

- fixed bracket error in hostname.rs, after changes
- updated comments for context.rs, for the suggested changes

* Removed obsolete warning from docs/config/README.md

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

---------

Co-authored-by: Dominik Sander <dsander@users.noreply.github.com>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2023-09-16 16:42:13 +02:00
renovate[bot]
75708a5f89
build(deps): update mislav/bump-homebrew-formula-action action to v2.3 2023-09-12 17:06:14 +00:00
renovate[bot]
8e174471b4 build(deps): update crate-ci/typos action to v1.16.11 2023-09-07 01:23:04 +00:00
renovate[bot]
55c07bcc7d
build(deps): update reviewdog/action-suggester action to v1.8.0 2023-09-06 20:31:45 +00:00
renovate[bot]
d70d403ddd build(deps): update reviewdog/action-suggester action to v1.7.5 2023-09-05 12:53:28 +00:00
renovate[bot]
d59bce30ae
build(deps): update actions/checkout action to v4 (#5416) 2023-09-05 03:09:06 +09:00
Jan Katins
6b444e05c6
feat(kubernetes): Add styling based on current context (#4550)
* feat(kubernetes): Add styling based on current context

Add an ability to customize the configuration of the kubernetes module style, based on the current context.

A new variable is added to the config section, called environments, which is a list of possible customizations. Each such customization is an object with a context_pattern regex, which matches context name, and an optional style and icon that will override the global configuration, if the currently used context matched the context_pattern.

Based on multiple attempts to add per-context styling and symbols to the kubernetes module.

- https://github.com/starship/starship/pull/1568 by @lht https://github.com/lht -> base
- https://github.com/starship/starship/pull/614 by @nomaed https://github.com/nomaed -> naming, symbol, some tests

Rebased and combined by @jankatins

Contains the following squasched commits

- Rename to contexts and move aliases into contexts
- Move deprecated functions to a submodule
- Cleanup: ignore None-valued KubeCtxComponents
- Add regex func + clean up matching-context search
- Placate paper clip

Closes: https://github.com/starship/starship/issues/570

Co-authored-by: =?UTF-8?q?Boris=20Aranovic=CC=8C?= <nomaed@gmail.com>
Co-authored-by: Jan Katins <jasc@gmx.net>
Co-authored-by: Kevin Song <chips@ksong.dev>

* refactor(kubernetes): Remove options and use clearer names

* test(kubernetes): Handle duplicated contexts right

* refactor(kubernetes): Cleaner user matching

* fix(kubernetes): Only show warning in case of problems

* feat(kubernetes): Add back alias replacements

* refactor(kubernetes): Cleanup rust usage

---------

Co-authored-by: Haitao Li <lihaitao@gmail.com>
Co-authored-by: =?UTF-8?q?Boris=20Aranovic=CC=8C?= <nomaed@gmail.com>
Co-authored-by: Kevin Song <chips@ksong.dev>
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2023-09-02 09:19:33 +02:00
Vegard Skui
e867cda1eb
feat(fossil_metrics): add fossil_metrics module (#4874)
* feat(fossil_metrics): add fossil_metrics module

* Return early if not in a Fossil check-out

* Add more tests for fossil_metrics

* Move is in Fossil checkout check after module enabled check

* Update type for new toml version

* Update the config file schema

* Rework parsing of fossil diff output

* Fix Fossil check-out detection in subdirectories

* Use regex to only match expected fossil diff output

* Use shared ancestor scanning and fix detection on Windows

* Add note on minimum Fossil version
2023-09-02 09:19:04 +02:00
renovate[bot]
91d9053aa4
build(deps): update crate-ci/typos action to v1.16.10 2023-09-02 02:21:09 +00:00
renovate[bot]
1884409c56
build(deps): update crate-ci/typos action to v1.16.9 2023-08-30 16:26:37 +00:00
renovate[bot]
cc08685c2c
build(deps): update crate-ci/typos action to v1.16.8 2023-08-21 18:23:54 +00:00
renovate[bot]
4c6835bfd8
build(deps): update crate-ci/typos action to v1.16.6 2023-08-19 01:35:06 +00:00
renovate[bot]
cfdd8d9ca0
build(deps): update crate-ci/typos action to v1.16.5 2023-08-14 17:24:23 +00:00
renovate[bot]
d63ef1febb
build(deps): update crate-ci/typos action to v1.16.4 2023-08-12 05:02:43 +00:00
renovate[bot]
173486f85c
build(deps): update crate-ci/typos action to v1.16.3 2023-08-09 14:10:13 +00:00
renovate[bot]
b24bdbc74e
build(deps): update reviewdog/action-suggester action to v1.7.4 2023-08-07 16:12:29 +00:00
renovate[bot]
04f0fe380a
build(deps): update reviewdog/action-suggester action to v1.7.3 2023-08-06 04:50:27 +00:00
renovate[bot]
4ac4fa886e
build(deps): update reviewdog/action-suggester action to v1.7.2 2023-08-05 06:40:48 +00:00
renovate[bot]
667a07bf88
build(deps): update crate-ci/typos action to v1.16.2 2023-08-01 20:25:17 +00:00
renovate[bot]
36f0f21e3d
build(deps): update embarkstudios/cargo-deny-action action to v1.5.4 2023-07-28 18:59:28 +00:00
renovate[bot]
89cad4261c
build(deps): update crate-ci/typos action to v1.16.1 2023-07-14 21:54:07 +00:00
Vivek Kushwaha
3402f0e82a
feat(shlvl): add repeat_offset for repeated symbol (#5289)
Signed-off-by: Vivek Kushwaha <yoursvivek@users.noreply.github.com>
2023-07-14 10:59:02 +02:00
renovate[bot]
9bbc7b469d build(deps): update dependency taplo-cli to 0.8.1 2023-07-11 08:59:50 +00:00
renovate[bot]
c0fee510d8
build(deps): update crate-ci/typos action to v1.16.0 2023-07-10 16:55:09 +00:00
renovate[bot]
6d33ad6914 build(deps): update crate-ci/typos action to v1.15.10 2023-07-03 19:33:24 +00:00
renovate[bot]
a26b5b0f2b build(deps): update crate-ci/typos action to v1.15.9 2023-07-01 12:08:09 +00:00
renovate[bot]
ad22e3e93c build(deps): update crate-ci/typos action to v1.15.7 2023-06-27 09:40:25 +00:00
renovate[bot]
85dd256a26
build(deps): update crate-ci/typos action to v1.15.6 2023-06-26 14:26:37 +00:00
renovate[bot]
52ecc411eb
build(deps): update crate-ci/typos action to v1.15.5 2023-06-22 19:53:44 +00:00
renovate[bot]
d0a7c0875c build(deps): update crate-ci/typos action to v1.15.3 2023-06-21 22:42:40 +00:00