feat: Improve starship prompt
This commit is contained in:
@@ -1,39 +1,58 @@
|
|||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
format = """
|
format = """
|
||||||
|
$hostname\
|
||||||
|
$container\
|
||||||
|
[](fg:#212736 bg:#394260)\
|
||||||
$os\
|
$os\
|
||||||
[](fg:#212736 bg:#a3aed2)\
|
[](fg:#394260 bg:#a3aed2)\
|
||||||
$username\
|
$username\
|
||||||
[](bg:#769ff0 fg:#a3aed2)\
|
[](fg:#a3aed2 bg:#769ff0)\
|
||||||
$directory\
|
$directory\
|
||||||
[](fg:#769ff0 bg:#394260)\
|
[](fg:#769ff0 bg:#394260)\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_status\
|
$git_status\
|
||||||
|
$direnv\
|
||||||
|
$mise\
|
||||||
[](fg:#394260 bg:#212736)\
|
[](fg:#394260 bg:#212736)\
|
||||||
$c\
|
|
||||||
$golang\
|
$golang\
|
||||||
$haskell\
|
|
||||||
$java\
|
|
||||||
$kotlin\
|
|
||||||
$nodejs\
|
|
||||||
$php\
|
|
||||||
$python\
|
|
||||||
$rust\
|
$rust\
|
||||||
[](fg:#212736 bg:#1d2230)\
|
$python\
|
||||||
|
$nodejs\
|
||||||
|
$docker_context\
|
||||||
|
$kubernetes\
|
||||||
|
$terraform\
|
||||||
|
[](fg:#212736)\
|
||||||
\n$time\
|
\n$time\
|
||||||
[ ](fg:#1d2230)\
|
|
||||||
$character"""
|
$character"""
|
||||||
|
|
||||||
right_format = """
|
right_format = """
|
||||||
[](fg:#212736 bg:#1d2230)\
|
[](fg:#212736 bg:#1d2230)\
|
||||||
\n$time\
|
\n$time\
|
||||||
"""
|
"""
|
||||||
|
[os.symbols]
|
||||||
[directory]
|
Windows = ""
|
||||||
style = "fg:#e3e5e5 bg:#769ff0"
|
Ubuntu = ""
|
||||||
format = "[ $path ]($style)"
|
SUSE = ""
|
||||||
truncation_length = 3
|
Raspbian = ""
|
||||||
truncation_symbol = "…/"
|
Mint = ""
|
||||||
|
Macos = ""
|
||||||
|
Manjaro = ""
|
||||||
|
Linux = ""
|
||||||
|
Gentoo = ""
|
||||||
|
Fedora = ""
|
||||||
|
Alpine = ""
|
||||||
|
Amazon = ""
|
||||||
|
Android = ""
|
||||||
|
AOSC = ""
|
||||||
|
Arch = ""
|
||||||
|
Artix = ""
|
||||||
|
EndeavourOS = ""
|
||||||
|
CentOS = ""
|
||||||
|
Debian = ""
|
||||||
|
Redhat = ""
|
||||||
|
RedHatEnterprise = ""
|
||||||
|
Pop = ""
|
||||||
|
|
||||||
[directory.substitutions]
|
[directory.substitutions]
|
||||||
"Documents" = " "
|
"Documents" = " "
|
||||||
@@ -79,65 +98,68 @@ symbol = ""
|
|||||||
style = "bg:#212736"
|
style = "bg:#212736"
|
||||||
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
|
format = '[[ $symbol ($version) ](fg:#769ff0 bg:#212736)]($style)'
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
time_format = "%R" # Hour:Minute Format
|
|
||||||
style = "bg:#1d2230"
|
|
||||||
format = '[[ $time ](fg:#a0a9cb bg:#1d2230)]($style)'
|
|
||||||
|
|
||||||
[os]
|
|
||||||
style = "bg:#212736 fg:#a3aed2"
|
|
||||||
format = "[ $symbol ]($style)"
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os.symbols]
|
|
||||||
Windows = ""
|
|
||||||
Ubuntu = ""
|
|
||||||
SUSE = ""
|
|
||||||
Raspbian = ""
|
|
||||||
Mint = ""
|
|
||||||
Macos = ""
|
|
||||||
Manjaro = ""
|
|
||||||
Linux = ""
|
|
||||||
Gentoo = ""
|
|
||||||
Fedora = ""
|
|
||||||
Alpine = ""
|
|
||||||
Amazon = ""
|
|
||||||
Android = ""
|
|
||||||
AOSC = ""
|
|
||||||
Arch = ""
|
|
||||||
Artix = ""
|
|
||||||
EndeavourOS = ""
|
|
||||||
CentOS = ""
|
|
||||||
Debian = ""
|
|
||||||
Redhat = ""
|
|
||||||
RedHatEnterprise = ""
|
|
||||||
Pop = ""
|
|
||||||
|
|
||||||
[username]
|
|
||||||
show_always = true
|
|
||||||
style_user = "bg:#a3aed2 fg:black"
|
|
||||||
style_root = "bg:#a3aed2 fg:red"
|
|
||||||
format = '[ $user ]($style)'
|
|
||||||
|
|
||||||
[hostname]
|
[hostname]
|
||||||
ssh_only = false
|
ssh_only = false
|
||||||
format = '[$ssh_symbol](bold blue) on [$hostname](bold red) '
|
style = "bg:#212736 fg:#a3aed2"
|
||||||
|
format = '[$ssh_symbol]($style)[ $hostname ]($style)'
|
||||||
# detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
|
# detect_env_vars = ['!TMUX', 'SSH_CONNECTION']
|
||||||
# trim_at = '.companyname.com'
|
# trim_at = '.companyname.com'
|
||||||
# aliases = { "Max's MacBook Pro" = "home" }
|
# aliases = { "Max's MacBook Pro" = "home" }
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
||||||
|
[os]
|
||||||
|
style = "bg:#394260 fg:#a3aed2"
|
||||||
|
format = "[ $symbol ]($style)"
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[username]
|
||||||
|
show_always = true
|
||||||
|
style_user = "bg:#a3aed2 fg:#212736"
|
||||||
|
style_root = "bg:#a3aed2 fg:red bold"
|
||||||
|
format = '[ $user ]($style)'
|
||||||
|
|
||||||
|
[sudo]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "fg:#e3e5e5 bg:#769ff0"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
|
[direnv]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[mise]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[kubernetes]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[terraform]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
time_format = "%R" # Hour:Minute Format
|
||||||
|
style = "fg:#a3aed2"
|
||||||
|
format = '[ $time ]($style)'
|
||||||
|
# format = '[[ $time ](fg:#a0a9cb bg:#1d2230)]($style)'
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = '[ ❯](bold green) '
|
success_symbol = '[ ❯](bold green) '
|
||||||
error_symbol = '[ ❯](bold red) '
|
error_symbol = '[ ❯](bold red) '
|
||||||
|
|
||||||
|
# Nerdfont symbols
|
||||||
#
|
#
|
||||||
# ✓ ✗ ✔ ✘
|
# ✓ ✗ ✔ ✘
|
||||||
# ❬ ❭ ❮ ❯ ❰ ❱ ❲ ❳ ❴ ❵
|
# ❬ ❭ ❮ ❯ ❰ ❱ ❲ ❳ ❴ ❵
|
||||||
# ➛ ➜ ➝ ➞ ➢ ➣ ➤
|
# ➛ ➜ ➝ ➞ ➢ ➣ ➤
|
||||||
|
|
||||||
# From powerline source (colorsheme.py)
|
# Powerline colorsheme (from powerline source file colorsheme.py)
|
||||||
#
|
|
||||||
# 0x000000, 0xc00000, 0x008000, 0x804000, 0x0000c0, 0xc000c0, 0x008080, 0xc0c0c0, 0x808080, 0xff6060, # 0
|
# 0x000000, 0xc00000, 0x008000, 0x804000, 0x0000c0, 0xc000c0, 0x008080, 0xc0c0c0, 0x808080, 0xff6060, # 0
|
||||||
# 0x00ff00, 0xffff00, 0x8080ff, 0xff40ff, 0x00ffff, 0xffffff, 0x000000, 0x00005f, 0x000087, 0x0000af, # 1
|
# 0x00ff00, 0xffff00, 0x8080ff, 0xff40ff, 0x00ffff, 0xffffff, 0x000000, 0x00005f, 0x000087, 0x0000af, # 1
|
||||||
# 0x0000d7, 0x0000ff, 0x005f00, 0x005f5f, 0x005f87, 0x005faf, 0x005fd7, 0x005fff, 0x008700, 0x00875f, # 2
|
# 0x0000d7, 0x0000ff, 0x005f00, 0x005f5f, 0x005f87, 0x005faf, 0x005fd7, 0x005fff, 0x008700, 0x00875f, # 2
|
||||||
|
|||||||
Reference in New Issue
Block a user