1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-11 07:40:57 +00:00

docs: fix custom commands example (#3129)

This commit is contained in:
Aman Kumar Sinha 2021-10-07 05:01:26 +05:30 committed by GitHub
parent 6464693165
commit 9f2f5293e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3392,12 +3392,12 @@ with shell details and starship configuration if you hit such scenario.
[custom.foo]
command = "echo foo" # shows output of command
files = ["foo"] # can specify filters
files = ["foo"] # can specify filters but wildcards are not supported
when = """ test "$HOME" == "$PWD" """
format = " transcending [$output]($style)"
[custom.time]
command = "time /T"
files = ["*.pst"]
extensions = ["pst"] # filters *.pst files
shell = ["pwsh.exe", "-NoProfile", "-Command", "-"]
```