Add 16 files (16+ files changed)
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
# Starship prompt configuration - managed by the zshrc repo.
|
||||
# Local edits to ~/.config/starship.toml are overwritten on the next interactive
|
||||
# shell start (reproducible/self-configuring design). Uses Nerd Font symbols
|
||||
# (JetBrainsMono Nerd Font is installed by the tmux config).
|
||||
|
||||
command_timeout = 1000
|
||||
add_newline = true
|
||||
|
||||
# Two-line prompt:
|
||||
# line 1: directory + git status + command duration
|
||||
# line 2: the input arrow (red on error)
|
||||
format = """
|
||||
$directory\
|
||||
$git_branch\
|
||||
$git_status\
|
||||
$cmd_duration\
|
||||
$line_break\
|
||||
$character\
|
||||
"""
|
||||
|
||||
[character]
|
||||
success_symbol = "[➜](bold green)"
|
||||
error_symbol = "[✗](bold red)"
|
||||
vimcmd_symbol = "[V](bold green)"
|
||||
|
||||
[directory]
|
||||
truncation_length = 3
|
||||
truncate_to_repo = true
|
||||
style = "bold blue"
|
||||
read_only = " "
|
||||
read_only_style = "red"
|
||||
repo_root_style = "bold cyan"
|
||||
|
||||
[git_branch]
|
||||
symbol = " "
|
||||
style = "bold purple"
|
||||
format = "[$symbol$branch]($style) "
|
||||
|
||||
[git_status]
|
||||
style = "bold red"
|
||||
conflicted = "=${count}"
|
||||
ahead = "⇡${count}"
|
||||
behind = "⇣${count}"
|
||||
diverged = "⇕↑${ahead_count}↓${behind_count}"
|
||||
untracked = "?${count}"
|
||||
stashed = " *${count}"
|
||||
modified = " !${count}"
|
||||
staged = " +${count}"
|
||||
renamed = " »${count}"
|
||||
deleted = " ✘${count}"
|
||||
format = '([$all_status$ahead_behind]($style) )'
|
||||
|
||||
[cmd_duration]
|
||||
min_time = 2000
|
||||
format = "took [$duration](bold yellow) "
|
||||
|
||||
[status]
|
||||
disabled = false
|
||||
format = '[$symbol]($style)'
|
||||
symbol = "✗ "
|
||||
success_symbol = ""
|
||||
style = "bold red"
|
||||
|
||||
[username]
|
||||
show_always = false
|
||||
style_user = "bold yellow"
|
||||
style_root = "bold red"
|
||||
format = "[$user]($style)@"
|
||||
|
||||
[hostname]
|
||||
ssh_only = true
|
||||
style = "bold green"
|
||||
format = "[$hostname]($style) "
|
||||
|
||||
[python]
|
||||
symbol = " "
|
||||
format = '[${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style) '
|
||||
|
||||
[nodejs]
|
||||
symbol = " "
|
||||
format = "[$symbol($version)]($style) "
|
||||
|
||||
[rust]
|
||||
symbol = " "
|
||||
format = "[$symbol($version)]($style) "
|
||||
|
||||
[golang]
|
||||
symbol = " "
|
||||
format = "[$symbol($version)]($style) "
|
||||
|
||||
[java]
|
||||
symbol = " "
|
||||
format = "[$symbol($version)]($style) "
|
||||
|
||||
[docker_context]
|
||||
symbol = " "
|
||||
format = "[$symbol$context]($style) "
|
||||
|
||||
[shell]
|
||||
disabled = true
|
||||
style = "bold cyan"
|
||||
Reference in New Issue
Block a user