Various improvements

This commit is contained in:
BlackNet Dev
2022-12-24 12:01:46 +01:00
parent ae21fdfae9
commit 40d1ac8fef
+219 -19
View File
@@ -1,6 +1,6 @@
format = """ format = """
$env_var\ $os\
[](fg:white)\ [](fg:white bg:black)\
$username\ $username\
$hostname\ $hostname\
[](fg:black bg:#6D8DD1)\ [](fg:black bg:#6D8DD1)\
@@ -10,11 +10,20 @@ $git_branch\
$git_state\ $git_state\
$git_status\ $git_status\
$git_metrics\ $git_metrics\
[](fg:#86BBD8 bg:#33658A)\ [](fg:#47CB6B bg:#FCA17D)\
$c\
$dart\
$golang\
$java\
$nodejs\
$php\
$python\
$rust\
[](fg:#FCA17D bg:#33658A)\
$docker_context\ $docker_context\
[](fg:#33658A bg:black)\ [](fg:#33658A)\
$fill\ $fill\
[](fg:#33658A bg:black)\ [](fg:#33658A)\
$jobs\ $jobs\
[](fg:yellow bg:#33658A)\ [](fg:yellow bg:#33658A)\
$cmd_duration\ $cmd_duration\
@@ -22,6 +31,7 @@ $cmd_duration\
$memory_usage\ $memory_usage\
[](fg:white bg:#47CB6B)\ [](fg:white bg:#47CB6B)\
$time\ $time\
$battery\
[ ](fg:white)\ [ ](fg:white)\
$line_break\ $line_break\
$character""" $character"""
@@ -37,7 +47,6 @@ success_symbol = "[](purple)"
error_symbol = "[](red)" error_symbol = "[](red)"
vicmd_symbol = "[](green)" vicmd_symbol = "[](green)"
# You can also replace your username with a neat symbol like  to save some space
[username] [username]
show_always = false show_always = false
style_user = "fg:yellow bg:black" style_user = "fg:yellow bg:black"
@@ -51,31 +60,66 @@ format = "[@](fg:yellow bg:black)[$hostname](fg:yellow bg:black) [$ssh_symbol ](
trim_at = ".companyname.com" trim_at = ".companyname.com"
disabled = false disabled = false
[env_var.STARSHIP_DISTRO] [os]
format = '[ $env_value ](fg:black bg:white)' format = '[ $symbol](fg:black bg:white)'
variable = "STARSHIP_DISTRO"
disabled = false disabled = false
[os.symbols]
Alpine = " "
Amazon = " "
Android = " "
Arch = " "
CentOS = " "
Debian = " "
DragonFly = " "
Emscripten = " "
EndeavourOS = " "
Fedora = " "
FreeBSD = " "
Garuda = "﯑ "
Gentoo = " "
HardenedBSD = "ﲊ "
Illumos = " "
Linux = " "
Macos = " "
Manjaro = " "
Mariner = " "
MidnightBSD = " "
Mint = " "
NetBSD = " "
NixOS = " "
OpenBSD = " "
openSUSE = " "
OracleLinux = " "
Pop = " "
Raspbian = " "
Redhat = " "
RedHatEnterprise = " "
Redox = " "
Solus = "ﴱ "
SUSE = " "
Ubuntu = " "
Unknown = " "
Windows = " "
[directory] [directory]
style = "bg:#6D8DD1" style = "bg:#6D8DD1"
read_only = " " read_only = " "
format = "[ $path ]($style)" format = "[ $path[$read_only](fg:yellow bg:#6D8DD1) ]($style)"
truncation_length = 3 truncation_length = 3
truncation_symbol = "…/" truncation_symbol = "…/"
truncate_to_repo = false
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions] [directory.substitutions]
"Important Documents" = " "
"Documents" = " " "Documents" = " "
"Downloads" = " " "Downloads" = " "
"Music" = " " "Music" = " "
"Pictures" = " " "Pictures" = " "
"Development" = " "
"Developer" = " "
"Dev" = " "
"~" = " ~" "~" = " ~"
# Keep in mind that the order matters. For example:
# "Important Documents" = "  "
# will not be replaced, because "Documents" was already substituted before.
# So either put "Important Documents" before "Documents" or use the substituted version:
# "Important  " = "  "
[docker_context] [docker_context]
symbol = " " symbol = " "
@@ -96,10 +140,13 @@ behind = "⇣${count}"
[git_state] [git_state]
style = "fg:black bg:#47CB6B" style = "fg:black bg:#47CB6B"
format = '\([$state( $progress_current/$progress_total)]($style)\) ' format = '\([$state( $progress_current of $progress_total)]($style)\) '
#style = "bright-black" #style = "bright-black"
[git_metrics] [git_metrics]
added_style = "fg:black bg:#47CB6B"
deleted_style = "fg:white bold bg:#47CB6B"
format = '[ +$added |]($added_style)[ -$deleted ](fg:red bold bg:#47CB6B)'
disabled = false disabled = false
[cmd_duration] [cmd_duration]
@@ -124,3 +171,156 @@ disabled = false
time_format = "%R" # Hour:Minute Format time_format = "%R" # Hour:Minute Format
format = '[](fg:white)[ $time  ](fg:black bg:white)' format = '[](fg:white)[ $time  ](fg:black bg:white)'
[battery]
full_symbol = ' '
charging_symbol = ' '
discharging_symbol = ' '
unknown_symbol = ' '
empty_symbol = ' '
format = '[](fg:white)[ $symbol$percentage ]($style)'
[[battery.display]]
threshold = 10
style = 'bold red bg:white'
[[battery.display]]
threshold = 30
style = 'bold yellow bg:white'
[[battery.display]]
threshold = 50
style = 'bold purpel bg:white'
[[battery.display]]
threshold = 100
style = 'bold green bg:white'
[aws]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[buf]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[c]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[conda]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[dart]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[elixir]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[elm]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[golang]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[guix_shell]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[haskell]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[haxe]
symbol = "⌘ "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[hg_branch]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[java]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[julia]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[lua]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[meson]
symbol = "喝 "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[nim]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[nix_shell]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[nodejs]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[package]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[python]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[rlang]
symbol = "ﳒ "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[ruby]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[rust]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[scala]
symbol = " "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'
[spack]
symbol = "🅢 "
style = "bg:#FCA17D"
format = '[ $symbol ($version) ]($style)'