1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-12 14:17:45 +00:00
Commit Graph

334 Commits

Author SHA1 Message Date
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
renovate[bot]
fad16ca1b8
build(deps): update reviewdog/action-suggester action to v1.7.1 2023-06-20 23:40:36 +00:00
renovate[bot]
aab8bb2778
build(deps): update crate-ci/typos action to v1.15.2 2023-06-20 16:21:45 +00:00
renovate[bot]
0e9f80fe17
build(deps): update crate-ci/typos action to v1.15.1 2023-06-19 16:54:32 +00:00
renovate[bot]
ee92e0dd47 build(deps): update reviewdog/action-suggester action to v1.6.1 2023-06-16 07:29:52 +00:00
renovate[bot]
b33538bfb1
build(deps): update crate-ci/typos action to v1.15.0 2023-06-08 15:50:30 +00:00
Matan Kushner
abadd9c58d
Checkout before running gh commands in CI 2023-06-06 10:44:58 -04:00
renovate[bot]
1245a6b459
build(deps): update crate-ci/typos action to v1.14.12 2023-06-02 04:17:18 +00:00
marcybell
351bf9d0b3
feat(golang): adding mod_version variable (#5177) 2023-06-01 21:18:38 +02:00
renovate[bot]
1e198713d7
build(deps): update crate-ci/typos action to v1.14.11 2023-05-22 23:33:48 +00:00
renovate[bot]
ec794e4524
build(deps): update crate-ci/typos action to v1.14.10 2023-05-19 17:32:06 +00:00