docs: fix custom commands example (#3129)
This commit is contained in:
parent
6464693165
commit
9f2f5293e3
|
@ -3392,12 +3392,12 @@ with shell details and starship configuration if you hit such scenario.
|
||||||
|
|
||||||
[custom.foo]
|
[custom.foo]
|
||||||
command = "echo foo" # shows output of command
|
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" """
|
when = """ test "$HOME" == "$PWD" """
|
||||||
format = " transcending [$output]($style)"
|
format = " transcending [$output]($style)"
|
||||||
|
|
||||||
[custom.time]
|
[custom.time]
|
||||||
command = "time /T"
|
command = "time /T"
|
||||||
files = ["*.pst"]
|
extensions = ["pst"] # filters *.pst files
|
||||||
shell = ["pwsh.exe", "-NoProfile", "-Command", "-"]
|
shell = ["pwsh.exe", "-NoProfile", "-Command", "-"]
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue