starship/src/configs
Harald Hoyer 4f46411403
feat: add a container indicator (#3304)
* test: add mock method for absolute files

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>

* feat(module): add a container indicator module

Adds a container type indicator, if inside a container,
detected via the presence of some marker files.

E.g. inside a podman container entered with `toolbox enter`
the prompt changes to the container name and version.

```
starship on  container_rebased [$!] is 📦 v1.0.0 via 🦀 v1.56.1
❯ toolbox enter

starship on  container_rebased [$!] is 📦 v1.0.0 via 🦀 v1.56.1
⬢ [fedora-toolbox:35] ❯
```

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
2022-01-21 09:44:46 -06:00
..
aws.rs feat(aws): add temporary credentials countdown (#2464) 2021-05-12 20:43:46 -04:00
azure.rs feat(azure): Azure module (#3275) 2021-12-06 23:01:33 +01:00
battery.rs feat(battery): Add a symbol option to `battery.display` (#2475) 2021-04-17 13:52:46 +02:00
character.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
cmake.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
cmd_duration.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
cobol.rs feat(cobol): added COBOL module (#2994) 2021-09-07 09:59:14 -05:00
conda.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
container.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
crystal.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
custom.rs feat: Add Operating System condition to custom commands (#2751) 2021-06-13 08:23:46 +02:00
dart.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
deno.rs feat(deno): detect `deno.json` and `deno.jsonc` (#3220) 2021-12-30 09:55:46 +01:00
directory.rs feat(directory): Windows path formatting via path_slash::PathBufExt (#3157) 2021-12-30 09:57:13 +01:00
docker_context.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
dotnet.rs fix(dotnet): make default format consistent with other modules (#2853) 2021-07-04 10:32:47 -04:00
elixir.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
elm.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
env_var.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
erlang.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
fill.rs feat(fill): add disabled option for fill module (#3158) 2021-10-21 14:27:32 +02:00
gcloud.rs feat(gcloud): introduce separate `account` & `domain` format string variables (#2594) 2021-04-30 08:19:54 +02:00
git_branch.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
git_commit.rs fix(git_commit): leading space in git commit tag (#2697) 2021-05-08 21:01:00 +02:00
git_metrics.rs feat(git_metrics): Git metrics show only nonzero diffs (#2887) 2021-08-27 09:38:46 -05:00
git_state.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
git_status.rs perf(git_status): tweak exec flags to omit unnecessary info (#3287) 2021-12-30 15:12:53 -06:00
go.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
helm.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
hg_branch.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
hostname.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
java.rs feat: add version format configuration (#2499) 2021-04-08 18:37:54 -04:00
jobs.rs fix(jobs): Add the symbol and number thresholds respecting the `threshold` option (#2908) 2021-08-14 15:29:25 +02:00
julia.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
kotlin.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
kubernetes.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
line_break.rs chore(clippy): fix new clippy lints (#3294) 2021-12-03 00:54:56 -06:00
lua.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
memory_usage.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
mod.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
nim.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
nix_shell.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
nodejs.rs fix(nodejs): Check for `.nvmrc` (#2626) 2021-04-22 12:08:12 -04:00
ocaml.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
openstack.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
package.rs feat(package): Add ability to format the version (#2959) 2021-08-06 21:16:14 +02:00
perl.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
php.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
pulumi.rs feat: Add pulumi module (#3055) 2021-10-05 18:27:25 -05:00
purescript.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
python.rs feat: add version format configuration (#2499) 2021-04-08 18:37:54 -04:00
red.rs feat(red,vlang): Add version formatting (#2987) 2021-08-15 21:30:58 +02:00
rlang.rs feat(r-lang): add module for R programming language (#1475) 2021-05-25 14:13:30 -04:00
ruby.rs feat(ruby): Add environment variable checks to ruby module (#3206) 2021-11-08 21:21:09 +01:00
rust.rs feat: add version format configuration (#2499) 2021-04-08 18:37:54 -04:00
scala.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
shell.rs feat: add support for cmd (#3277) 2022-01-09 23:47:53 -06:00
shlvl.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
singularity.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
starship_root.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
status.rs feat(status): Add pipestatus display in status module (#2481) 2021-07-28 12:26:00 -04:00
sudo.rs feat(module): Add `sudo` module (#3135) 2021-11-15 06:46:13 +01:00
swift.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
terraform.rs fix(terraform): Improve module triggers (#3113) 2021-10-04 18:08:58 +02:00
time.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
username.rs feat(config): allow printing default and computed config (#2521) 2021-03-31 17:31:55 +02:00
v.rs feat(red,vlang): Add version formatting (#2987) 2021-08-15 21:30:58 +02:00
vagrant.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00
vcsh.rs fix(print-config): fix battery module and add missing modules (#2930) 2021-07-30 13:33:59 -04:00
zig.rs feat: Add version formating for modules (#2611) 2021-04-29 23:22:20 +02:00