1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-19 16:42:26 +00:00
starship/src
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
..
configs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
formatter fix(escaping): move escaping to individual variables (#3107) 2021-11-01 22:18:45 +01:00
init perf(elvish): Use built-in randint instead of starship session. (#3479) 2022-01-21 08:08:14 +01:00
modules feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
test feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
bug_report.rs fix(bug-report): remove git.io link shortening (#3425) 2022-01-14 15:22:36 +03:00
config.rs fix: update continuation prompt to be more minimal (#3374) 2022-01-01 14:39:08 -05:00
configure.rs refactor: update clap to v3 (#3370) 2022-01-04 12:49:42 +03:00
context.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
lib.rs fix(windows): avoid inadvertly running exes from cwd (#2885) 2021-07-16 15:20:59 -04:00
logger.rs fix(clippy): fix new clippy lints (#2939) 2021-07-29 14:27:46 -04:00
main.rs refactor: update clap to v3 (#3370) 2022-01-04 12:49:42 +03:00
module.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00
print.rs refactor: update clap to v3 (#3370) 2022-01-04 12:49:42 +03:00
segment.rs feat: Add a fill module to pad out the line (#3029) 2021-09-12 19:59:15 -04:00
utils.rs feat: add a container indicator (#3304) 2022-01-21 09:44:46 -06:00