mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(directory): add before_repo_root_style (#4595)
This commit is contained in:
@@ -330,13 +330,14 @@
|
||||
},
|
||||
"directory": {
|
||||
"default": {
|
||||
"before_repo_root_style": null,
|
||||
"disabled": false,
|
||||
"fish_style_pwd_dir_length": 0,
|
||||
"format": "[$path]($style)[$read_only]($read_only_style) ",
|
||||
"home_symbol": "~",
|
||||
"read_only": "🔒",
|
||||
"read_only_style": "red",
|
||||
"repo_root_format": "[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ",
|
||||
"repo_root_format": "[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ",
|
||||
"repo_root_style": null,
|
||||
"style": "cyan bold",
|
||||
"substitutions": {},
|
||||
@@ -2468,7 +2469,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"repo_root_format": {
|
||||
"default": "[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ",
|
||||
"default": "[$before_root_path]($before_repo_root_style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) ",
|
||||
"type": "string"
|
||||
},
|
||||
"style": {
|
||||
@@ -2482,6 +2483,13 @@
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"before_repo_root_style": {
|
||||
"default": null,
|
||||
"type": [
|
||||
"string",
|
||||
"null"
|
||||
]
|
||||
},
|
||||
"disabled": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
|
||||
Reference in New Issue
Block a user