mirror of
https://github.com/starship/starship.git
synced 2025-08-12 17:37:37 +02:00
feat: add typst module
Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
committed by
David Knaack
parent
b5f9457b28
commit
7b217056bd
@ -108,6 +108,9 @@ format = '(via [$symbol($version )]($style))'
|
||||
[swift]
|
||||
format = '(via [$symbol($version )]($style))'
|
||||
|
||||
[typst]
|
||||
format = '(via [$symbol($version )]($style))'
|
||||
|
||||
[vagrant]
|
||||
format = '(via [$symbol($version )]($style))'
|
||||
|
||||
|
@ -13,3 +13,6 @@ symbol = "[⬢](bold green) "
|
||||
|
||||
[pulumi]
|
||||
symbol = "🧊 "
|
||||
|
||||
[typst]
|
||||
symbol = "t "
|
||||
|
@ -109,6 +109,9 @@ format = 'via [$symbol]($style)'
|
||||
[solidity]
|
||||
format = 'via [$symbol]($style)'
|
||||
|
||||
[typst]
|
||||
format = 'via [$symbol]($style)'
|
||||
|
||||
[swift]
|
||||
format = 'via [$symbol]($style)'
|
||||
|
||||
|
@ -209,6 +209,9 @@ symbol = "sudo "
|
||||
[swift]
|
||||
symbol = "swift "
|
||||
|
||||
[typst]
|
||||
symbol = "typst "
|
||||
|
||||
[terraform]
|
||||
symbol = "terraform "
|
||||
|
||||
|
@ -323,6 +323,7 @@ $scala\
|
||||
$solidity\
|
||||
$swift\
|
||||
$terraform\
|
||||
$typst\
|
||||
$vlang\
|
||||
$vagrant\
|
||||
$zig\
|
||||
@ -4278,6 +4279,39 @@ utc_time_offset = '-5'
|
||||
time_range = '10:00:00-14:00:00'
|
||||
```
|
||||
|
||||
## Typst
|
||||
|
||||
The `typst` module shows the current installed version of Typst used in a project.
|
||||
|
||||
By default, the module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `template.typ` file
|
||||
- The current directory contains any `*.typ` file
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
||||
| `symbol` | `'t '` | A format string representing the symbol of Daml |
|
||||
| `style` | `'bold #0093A7'` | The style for the module. |
|
||||
| `detect_extensions` | `['.typ']` | Which extensions should trigger this module. |
|
||||
| `detect_files` | `['template.typ']` | Which filenames should trigger this module. |
|
||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||
| `disabled` | `false` | Disables the `daml` module. |
|
||||
|
||||
### Variables
|
||||
|
||||
| Variable | Example | Description |
|
||||
| ------------- | --------- | ----------------------------------------------- |
|
||||
| version | `v0.9.0` | The version of `typst`, alias for typst_version |
|
||||
| typst_version | `default` | The current Typst version |
|
||||
| symbol | | Mirrors the value of option `symbol` |
|
||||
| style\* | | Mirrors the value of option `style` |
|
||||
|
||||
*: This variable can only be used as a part of a style string
|
||||
|
||||
## Username
|
||||
|
||||
The `username` module shows active user's username.
|
||||
|
Reference in New Issue
Block a user