Improve starship config
This commit is contained in:
parent
2963ec0ad4
commit
e8441b3a53
1 changed files with 51 additions and 22 deletions
|
@ -1,54 +1,80 @@
|
||||||
format = """
|
format = """
|
||||||
$time $username$hostname$docker_context $directory$git_branch$git_commit$git_state$git_status\
|
[](blue)\
|
||||||
$fill$status$cmd_duration$jobs
|
$time\
|
||||||
$sudo$shell $character
|
[](bg:purple fg:blue)\
|
||||||
|
$sudo$username$hostname$docker_context\
|
||||||
|
[](bg:green fg:purple)\
|
||||||
|
$directory\
|
||||||
|
[](bg:red fg:green)\
|
||||||
|
$git_branch$git_commit$git_state$git_status\
|
||||||
|
[](bg:#454158 fg:red)\
|
||||||
|
$fill\
|
||||||
|
[](bg:#454158 fg:yellow)\
|
||||||
|
$status$cmd_duration\
|
||||||
|
[](bg:yellow fg:cyan)\
|
||||||
|
$jobs\
|
||||||
|
[](cyan)
|
||||||
|
[](blue)\
|
||||||
|
$shell$character
|
||||||
"""
|
"""
|
||||||
|
|
||||||
continuation_prompt = "▶"
|
continuation_prompt = "[](blue)[ ](bg:blue)[](blue) "
|
||||||
|
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = "[➜](bold green)"
|
success_symbol = "[ ](fg:blue bg:green)[](green)"
|
||||||
error_symbol = "[✗](bold red)"
|
error_symbol = "[ ](fg:blue bg:red)[](red)"
|
||||||
vicmd_symbol = "[V](bold green)"
|
vicmd_symbol = "[ ](fg:blue bg:cyan)[](cyan)"
|
||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 0
|
min_time = 0
|
||||||
show_notifications = true
|
show_notifications = true
|
||||||
show_milliseconds = true
|
show_milliseconds = true
|
||||||
format = "[祥$duration]($style) "
|
style = "bg:yellow fg:black"
|
||||||
|
format = "[$duration祥]($style)"
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
read_only = ""
|
read_only = ""
|
||||||
truncation_length = 8
|
truncation_length = 8
|
||||||
truncation_symbol = "…/"
|
truncation_symbol = "…/"
|
||||||
style = "cyan"
|
style = "bg:green fg:black"
|
||||||
repo_root_style = "cyan bold underline"
|
format = "[$read_only$path]($style)"
|
||||||
format = "[$read_only]($read_only_style)[$path]($style) "
|
|
||||||
repo_root_format = "[$read_only]($read_only_style)[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style) "
|
|
||||||
|
|
||||||
[docker_context]
|
[docker_context]
|
||||||
format = ' [\[$symbol$context\]]($style)'
|
style = "bg:purple"
|
||||||
|
symbol = ""
|
||||||
|
format = "[ $symbol$context]($style)"
|
||||||
|
|
||||||
[fill]
|
[fill]
|
||||||
|
style = "bg:#454158"
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:red fg:black"
|
||||||
|
format = '[ $symbol $branch ]($style)'
|
||||||
|
|
||||||
[git_commit]
|
[git_commit]
|
||||||
|
style = "bg:red fg:black"
|
||||||
tag_disabled = false
|
tag_disabled = false
|
||||||
tag_symbol = " "
|
tag_symbol = " "
|
||||||
|
format = '[\($hash$tag\) ]($style)'
|
||||||
|
|
||||||
[git_status]
|
[git_status]
|
||||||
staged = "[+](green)"
|
style = "bg:red fg:black"
|
||||||
|
format = '[\[$all_status$ahead_behind\]]($style)'
|
||||||
|
|
||||||
[hostname]
|
[hostname]
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
style = "purple"
|
style = "bg:purple"
|
||||||
format = "@[$hostname]($style)"
|
format = "[@$hostname]($style)"
|
||||||
trim_at = ""
|
trim_at = ""
|
||||||
|
|
||||||
[jobs]
|
[jobs]
|
||||||
number_threshold = 1
|
number_threshold = 1
|
||||||
|
style = "bg:cyan fg:black"
|
||||||
symbol = ""
|
symbol = ""
|
||||||
|
format = "[$symbol$number]($style)"
|
||||||
|
|
||||||
[shell]
|
[shell]
|
||||||
bash_indicator = '\$'
|
bash_indicator = '\$'
|
||||||
|
@ -56,25 +82,28 @@ fish_indicator = ""
|
||||||
zsh_indicator = '%%'
|
zsh_indicator = '%%'
|
||||||
powershell_indicator = ""
|
powershell_indicator = ""
|
||||||
unknown_indicator = ""
|
unknown_indicator = ""
|
||||||
style = "white"
|
style = "bg:blue"
|
||||||
format = '[$indicator]($style)'
|
format = '[$indicator]($style)'
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[sudo]
|
[sudo]
|
||||||
|
style = "bg:purple"
|
||||||
|
symbol = ""
|
||||||
format = "[$symbol]($style)"
|
format = "[$symbol]($style)"
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
[status]
|
[status]
|
||||||
disabled = false
|
disabled = false
|
||||||
format = "[$status]($style) "
|
style = "bg:yellow fg:black"
|
||||||
|
format = "[$status ]($style)"
|
||||||
|
|
||||||
[time]
|
[time]
|
||||||
disabled = false
|
disabled = false
|
||||||
style = "white"
|
style = "bg:blue"
|
||||||
format = "[$time]($style)"
|
format = "[$time]($style)"
|
||||||
|
|
||||||
[username]
|
[username]
|
||||||
style_user = "yellow bold"
|
|
||||||
style_root = "red bold"
|
|
||||||
format = "[$user]($style)"
|
|
||||||
show_always = true
|
show_always = true
|
||||||
|
style_user = "bg:purple"
|
||||||
|
style_root = "bg:purple underline"
|
||||||
|
format = '[$user]($style)'
|
||||||
|
|
Loading…
Reference in a new issue