Commit Graph

526 Commits

Author SHA1 Message Date
Sebastian Thiel daf8d93d27 perf: use gitoxide for git_status and git_metrics modules (#6476) 2025-04-26 22:43:41 +09:00
Alex Grover 00ce7057ef feat(nodejs): disable if bun project files detected (#6346) 2025-03-09 19:31:40 +01:00
David Knaack 2a3ca68457 refactor: switch to rust 2024 edition & handle dependency updates (#6609) 2025-03-09 19:24:45 +01:00
Max Niederman eb42f5ac70 feat: add network namespace module (#6449) 2025-03-09 16:45:58 +01:00
Caleb Cox bd2321a12f feat(package): support JSR package version (#6502)
---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2025-03-02 11:49:47 +01:00
David Knaack dfddd999c3 chore: handle updates for os-info, windows and shadow-rs (#6487)
* build(deps): update rust crate windows to 0.59.0

* chore: handle windows update

* chore: handle os_info update

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

* chore: handle shadow-rs update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 14:58:02 +01:00
MK 2df521c69b feat(bun): Detect bun using new text-format lockfile (#6441)
* Support bun text-format lockfile

Bun version 1.1.39 introduced a new plaintext lockfile. Currently it is opt-in only, but it will become the default in bun version 1.2.

* update docs

* update config schema

* update tests
2024-12-29 18:20:01 +01:00
T0mstone e21775c694 feat(status): add {success,failure}_style options (#6269) 2024-12-27 11:30:28 +01:00
Nick Conway 45937166c8 feat(direnv): allow direnv to detect environment variables (#6196) 2024-12-27 11:25:15 +01:00
Poliorcetics 8a38b8f6f1 fix(status): add trailing space to pipestatus_format (#6404) 2024-11-24 19:13:35 +01:00
Jake Wharton 9e72ef0a58 docs: Use inline code for Odin module name (#6359)
Use inline code for Odin module name

This matches all other modules.
2024-11-04 22:22:34 +01:00
Daniel Waltz 22c6c5201d feat(deno): add deno.lock file to default detect_files list (#6310)
* feat(deno): add `deno.lock` file to default `detect_files` list

* feat(deno): add `deno.lock` to default detect files in schema

* test: add test for `deno.lock` file presense

* docs: add `deno.lock` to list of default files

* chore: formatting

* Revert "docs: add `deno.lock` to list of default files"

This reverts commit 6d0dc577d5.

* docs: add `deno.lock` to default detect files in primary readme

* chore: revert formatting from latest version of dprint

* docs: add `deno.lock` to default detect files list and format
2024-10-14 22:05:23 +02:00
Tim Siegel 2f120bee9d docs(config): custom shell is used for when command (#6312)
Co-authored-by: Tim Siegel <trs@jelly.home>
2024-10-14 22:04:20 +02:00
Ben Fritsch 14babde435 fix(docker_context): Ignore Docker Desktop "desktop-linux" context. (#6314)
* Docker Desktop uses "desktop-linux" instead of "default" as the default context since version 3.5.
This filters "desktop-linux" in the same way as "default".
https://github.com/starship/starship/issues/6170

* update docs/config/README.md
2024-10-14 22:02:52 +02:00
Baku Kim 36134d896b feat(python): detect pixi and ipynb files (#6228) 2024-09-26 10:53:18 +02:00
Taishi Naka ee563f93d3 docs(config): add toml language tag to code blocks (#6261)
docs(config): add toml language tag to code blocks for better syntax highlighting
2024-09-26 10:51:46 +02:00
Justin Su 58af64e582 docs(git_commit): add extra trailing space to tag_symbol (#6186)
docs(config): add extra trailing space to `tag_symbol` (Git Commit module)
2024-09-12 10:38:16 +02:00
Justin Su c5fde1734d docs(config, preset): fix Buf module config docs and No Empty Icons preset (#6200)
* docs(config): Buf module is shown even if `buf` CLI is not installed

* docs(preset): make Buf format string consistent with other modules
2024-08-21 09:22:23 +02:00
Daniel Kneipp 171746a584 feat(mojo): add module for Mojo language (#6108)
* feat: add support to mojo lang

* docs: fix mojo formatting

* Update src/modules/mojo.rs

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

* feat(mojo): parse hash as an independent variable

* chore(mojo): fix formatting

* chore(mojo): update schema and docs

* feat(mojo): use lazy cmd evaluation

---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-08-18 18:12:39 +02:00
Thomas O'Donnell 8a2d944bc8 feat(python): Add detect env vars option (#4486)
feat(python): Configure different detect env vars

Allow the env vars that trigger the python module to be configured, if
an empty list is passed then the module will fall back to just
triggering based on the configured files, folders and extensions.
2024-08-18 18:11:13 +02:00
Jerbee Paragas e47dd5ab25 docs(nodejs): Add missing .nvmrc to detect_files option (#6185)
docs(nodejs): Add missing `.nvmrc` to `detect_files` option
2024-08-18 17:28:28 +02:00
Pavel Zwerschke 6248cda237 docs: Mention pixi PS1 in docs (#6195)
* Mention pixi PS1 in docs

* only in english version
2024-08-18 17:17:28 +02:00
Eduard Korchmar 68a8fc9563 feat(hostname): add option to replace hostnames with aliases (#6097)
---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-08-12 18:26:35 +02:00
Koichi Murase e629ea1c7a docs(config): fix typos (#6142) 2024-07-29 21:44:30 +02:00
Neil Prockter d96fbc5bcb fix(docs): correct username options (#6084)
correct username options

These seem to have been copied from hostname and did not make sense
2024-07-29 19:16:06 +02:00
David Knaack cfc58161e0 Merge commit from fork
addresses GHSA-vx24-x4mv-vwr5
2024-07-26 19:31:41 +02:00
Evan Mattiza e0281868c9 feat(purescript): add support for spago-next configuration files (#6036)
* update: add purescript spago-next configuration files

in upcoming spago projects, the configuration file is changing from
spago.dhall -> spago.yaml and spago.lock. This will detect both styles
for the time being

* fix typo

did not update test. spago.yaml -> spago.lock in the spago lock file
test case
2024-06-28 23:39:40 +02:00
Jonathan Carlson d9f8e3b1d9 docs: fix Typst copy paste typo (#6021)
docs: fix typst copy paste typo for disabled option in config docs
2024-06-09 09:20:47 +02:00
Tej Chajed 116ecdfa26 docs: fix copy-paste typos in config docs (#5995)
docs: Fix copy-paste typos in config docs

The symbol config line for Gleam was copied from Go, for Haxe was
copied from Helm, and for Typst was copied from Daml.
2024-06-01 15:23:21 +02:00
John Hooks 5facd85da5 feat(nats): Add NATS Context (#5900)
---------

Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
2024-05-15 18:46:14 +02:00
redistay 413364ece5 docs: fix typo in README.md (#5902)
docs: fix typos in README.md

Signed-off-by: redistay <wujunjing@outlook.com>
2024-04-14 21:19:30 +02: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
Ramy be4e97c2d9 fix(bun): change default icon (#5880)
* feat: change bun icon #5871

* fix: reverts docs
2024-03-30 09:38:19 +01:00
Alper Cugun e39e731907 docs(bun): Add nodejs override to bun config documentation (#5834) 2024-03-21 12:41:20 +01:00
David Knaack df65b2155f feat(os): add new os symbols (#5849) 2024-03-21 12:39:28 +01:00
marcybell 938ea3c401 feat: $gemset variable for Ruby module (#5429)
* $gemset variable for Ruby module

* typo

* Added test for no GEM_HOME env set

* Formatting

* Uses `rvm current` for gemset, no more version num
2024-03-20 22:57:26 +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
Jan Katins 3949697c0d docs(python): Remove a bad config example in the python (#5830)
docs(python): Remove a bad config example in the python

Running a unknown binary in a subfolder (called `.venv/bin/python`) has at least two drawbacks with some security implication:

- In case of a unknown directory, simply cd'ing into a subdirectory could lead to starship executing a unknown binary (usually the binary MUST be in path so it's a decision taken by the user, e.g. by activating the venv)
 - starship would show the result of the venv python even if the venv is not active but calling `python3` on the cli would NOT run that `python3` in the venv but a different one (most likely the system python3).
2024-03-09 08:08:29 +01:00
Brandon Dong e8442f5d95 docs: Fix git status $all_status documentation (#5826)
* add `typechanged` to git status $all_status documentation

* Revert dog changes for other languages
2024-03-07 21:52:07 +01: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
CAESIUS_TIM 431aaa5875 docs(battery): add space after symbol in example (#5695)
docs(battery): add space after symbol in example (#5695)
2024-01-11 18:10:48 +01: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
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
ecksun f432800611 docs: Fix typo in gcloud description (#5634) 2023-12-14 19:11:10 +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