mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(starship): Powerline prompt for all shells
This commit is contained in:
parent
2c56ce364f
commit
0c2cfd4baa
8 changed files with 392 additions and 805 deletions
391
common/starship.toml
Normal file
391
common/starship.toml
Normal file
|
|
@ -0,0 +1,391 @@
|
||||||
|
# $DOTFILES/common/starship.toml
|
||||||
|
# Date: 2025-01-26
|
||||||
|
# Description: Use one starship config for all shells
|
||||||
|
|
||||||
|
# Location: $XDG_CONFIG_HOME/starship.toml
|
||||||
|
# Linking: ln -s $DOTFILES/common/starship.toml $XDG_CONFIG_HOME/starship.toml
|
||||||
|
|
||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
palette = "catppuccin_mocha"
|
||||||
|
|
||||||
|
# {{{ format
|
||||||
|
format = """
|
||||||
|
$jobs\
|
||||||
|
$os\
|
||||||
|
$time\
|
||||||
|
[](bg:#DA627D fg:#9A348E)\
|
||||||
|
$username\
|
||||||
|
$hostname\
|
||||||
|
[](fg:#DA627D bg:#FCA17D)\
|
||||||
|
$directory\
|
||||||
|
$git_branch\
|
||||||
|
$git_status\
|
||||||
|
[](fg:#FCA17D bg:#86BBD8)\
|
||||||
|
$c\
|
||||||
|
$cmake\
|
||||||
|
$cobol\
|
||||||
|
$daml\
|
||||||
|
$dart\
|
||||||
|
$deno\
|
||||||
|
$dotnet\
|
||||||
|
$elixir\
|
||||||
|
$elm\
|
||||||
|
$erlang\
|
||||||
|
$fennel\
|
||||||
|
$gleam\
|
||||||
|
$golang\
|
||||||
|
$guix_shell\
|
||||||
|
$haskell\
|
||||||
|
$haxe\
|
||||||
|
$helm\
|
||||||
|
$java\
|
||||||
|
$julia\
|
||||||
|
$kotlin\
|
||||||
|
$gradle\
|
||||||
|
$lua\
|
||||||
|
$nim\
|
||||||
|
$nodejs\
|
||||||
|
$ocaml\
|
||||||
|
$opa\
|
||||||
|
$perl\
|
||||||
|
$php\
|
||||||
|
$pulumi\
|
||||||
|
$purescript\
|
||||||
|
$python\
|
||||||
|
$quarto\
|
||||||
|
$raku\
|
||||||
|
$rlang\
|
||||||
|
$red\
|
||||||
|
$ruby\
|
||||||
|
$rust\
|
||||||
|
$scala\
|
||||||
|
$solidity\
|
||||||
|
$swift\
|
||||||
|
$terraform\
|
||||||
|
$typst\
|
||||||
|
$vlang\
|
||||||
|
$vagrant\
|
||||||
|
$zig\
|
||||||
|
[](fg:#86BBD8)
|
||||||
|
$character\
|
||||||
|
$shell\
|
||||||
|
[](fg:#06969A)\
|
||||||
|
"""
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ right
|
||||||
|
[shell]
|
||||||
|
style = "bg:#06969A"
|
||||||
|
format = '[ $indicator ]($style)'
|
||||||
|
fish_indicator = " "
|
||||||
|
bash_indicator = '$ '
|
||||||
|
zsh_indicator = "% "
|
||||||
|
powershell_indicator = "PS"
|
||||||
|
cmd_indicator = "cm"
|
||||||
|
nu_indicator = "nu"
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[ ](bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
error_symbol = "[ ](fg:bold red bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
vimcmd_symbol = "[ ](fg:#32ff6c bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
vimcmd_visual_symbol = "[ ](fg:bold yellow bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
vimcmd_replace_symbol = "[ ](fg:bold purple bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
vimcmd_replace_one_symbol = "[ ](fg:bold purple bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
# success_symbol = "[ ](bg:#33658A)[](fg:#33658A bg:#06969A)"
|
||||||
|
# success_symbol = "[](fg:#86BBD8 bg:#33658A)"
|
||||||
|
format = "$symbol"
|
||||||
|
disabled = false
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ TODO
|
||||||
|
#
|
||||||
|
# $buf\
|
||||||
|
# $nix_shell\
|
||||||
|
# $conda\
|
||||||
|
# $meson\
|
||||||
|
# $spack\
|
||||||
|
# $memory_usage\
|
||||||
|
# $aws\
|
||||||
|
# $gcloud\
|
||||||
|
# $openstack\
|
||||||
|
# $azure\
|
||||||
|
# $nats\
|
||||||
|
# $direnv\
|
||||||
|
# $env_var\
|
||||||
|
# $crystal\
|
||||||
|
# $custom\
|
||||||
|
# $sudo\
|
||||||
|
# $cmd_duration\
|
||||||
|
# $line_break\
|
||||||
|
# $battery\
|
||||||
|
# $container\
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Disable the blank line at the start of the prompt
|
||||||
|
# add_newline = false
|
||||||
|
|
||||||
|
# You can also replace your username with a neat symbol like or disable this
|
||||||
|
# and use the os module below
|
||||||
|
|
||||||
|
# {{{ Part 1
|
||||||
|
[jobs]
|
||||||
|
style = "bg:#9A348E"
|
||||||
|
format = '[$symbol $number]($style)'
|
||||||
|
|
||||||
|
[os]
|
||||||
|
style = "bg:#9A348E"
|
||||||
|
format = '[ $symbol ]($style)'
|
||||||
|
disabled = false # Disabled by default
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
Alpaquita = " "
|
||||||
|
Alpine = " "
|
||||||
|
AlmaLinux = " "
|
||||||
|
Amazon = " "
|
||||||
|
Android = " "
|
||||||
|
Arch = " "
|
||||||
|
Artix = " "
|
||||||
|
CentOS = " "
|
||||||
|
Debian = " "
|
||||||
|
DragonFly = " "
|
||||||
|
Emscripten = " "
|
||||||
|
EndeavourOS = " "
|
||||||
|
Fedora = " "
|
||||||
|
FreeBSD = " "
|
||||||
|
Garuda = " "
|
||||||
|
Gentoo = " "
|
||||||
|
HardenedBSD = " "
|
||||||
|
Illumos = " "
|
||||||
|
Kali = " "
|
||||||
|
Linux = " "
|
||||||
|
Mabox = " "
|
||||||
|
Macos = " "
|
||||||
|
Manjaro = " "
|
||||||
|
Mariner = " "
|
||||||
|
MidnightBSD = " "
|
||||||
|
Mint = " "
|
||||||
|
NetBSD = " "
|
||||||
|
NixOS = " "
|
||||||
|
OpenBSD = " "
|
||||||
|
openSUSE = " "
|
||||||
|
OracleLinux = " "
|
||||||
|
Pop = " "
|
||||||
|
Raspbian = " "
|
||||||
|
Redhat = " "
|
||||||
|
RedHatEnterprise = " "
|
||||||
|
RockyLinux = " "
|
||||||
|
Redox = " "
|
||||||
|
Solus = " "
|
||||||
|
SUSE = " "
|
||||||
|
Ubuntu = " "
|
||||||
|
Unknown = " "
|
||||||
|
Void = " "
|
||||||
|
Windows = " "
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
time_format = "%R" # Hour:Minute Format
|
||||||
|
# style = "bg:#33658A"
|
||||||
|
style = "bg:#9A348E"
|
||||||
|
format = '[ $time ]($style)'
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ Part 2
|
||||||
|
[username]
|
||||||
|
show_always = true
|
||||||
|
style_user = "bg:#DA627D"
|
||||||
|
style_root = "bg:#DA627D"
|
||||||
|
# style_user = "bg:#9A348E"
|
||||||
|
# style_root = "bg:#9A348E"
|
||||||
|
format = '[ $user ]($style)'
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
|
||||||
|
[hostname]
|
||||||
|
ssh_only = false
|
||||||
|
# format = '[$ssh_symbol](bold blue) [$hostname](bold red) '
|
||||||
|
style = "bg:#DA627D"
|
||||||
|
format = '[@ $hostname ]($style)'
|
||||||
|
trim_at = '.companyname.com'
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ Part 3
|
||||||
|
[directory]
|
||||||
|
style = "bg:#FCA17D fg:#035E82"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
|
fish_style_pwd_dir_length = 1
|
||||||
|
# truncation_length = 100
|
||||||
|
truncation_length = 2
|
||||||
|
truncation_symbol = ":"
|
||||||
|
truncate_to_repo = true
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacementtruncation_symbol = ":"
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
# "Documents" = " "
|
||||||
|
# "Downloads" = " "
|
||||||
|
# "Music" = " "
|
||||||
|
# "Pictures" = " "
|
||||||
|
# "Source" = " "
|
||||||
|
# ".dotfiles" = " "
|
||||||
|
# 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 " = " "
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#FCA17D fg:#035E82"
|
||||||
|
format = '[ $symbol $branch ]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:#FCA17D fg:#035E82"
|
||||||
|
renamed = " "
|
||||||
|
modified = " "
|
||||||
|
staged = " "
|
||||||
|
deleted = " "
|
||||||
|
format = '[$all_status$ahead_behind ]($style)'
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ Part 4
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[cmake]
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[dart]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[deno]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[dotnet]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
detect_extensions = [
|
||||||
|
"sln",
|
||||||
|
"csproj",
|
||||||
|
"fsproj",
|
||||||
|
"xproj",
|
||||||
|
"vbproj",
|
||||||
|
"cs",
|
||||||
|
"csx",
|
||||||
|
"fs",
|
||||||
|
"fsx",
|
||||||
|
]
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#06969A"
|
||||||
|
format = '[ $symbol $context ]($style)'
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[gradle]
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[lua]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8 fg:#794427"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ Part 5
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# {{{ Misc
|
||||||
|
|
||||||
|
[palettes.catppuccin_mocha]
|
||||||
|
rosewater = "#f5e0dc"
|
||||||
|
flamingo = "#f2cdcd"
|
||||||
|
pink = "#f5c2e7"
|
||||||
|
mauve = "#cba6f7"
|
||||||
|
red = "#f38ba8"
|
||||||
|
maroon = "#eba0ac"
|
||||||
|
peach = "#fab387"
|
||||||
|
yellow = "#f9e2af"
|
||||||
|
green = "#a6e3a1"
|
||||||
|
teal = "#94e2d5"
|
||||||
|
sky = "#89dceb"
|
||||||
|
sapphire = "#74c7ec"
|
||||||
|
blue = "#89b4fa"
|
||||||
|
lavender = "#b4befe"
|
||||||
|
text = "#cdd6f4"
|
||||||
|
subtext1 = "#bac2de"
|
||||||
|
subtext0 = "#a6adc8"
|
||||||
|
overlay2 = "#9399b2"
|
||||||
|
overlay1 = "#7f849c"
|
||||||
|
overlay0 = "#6c7086"
|
||||||
|
surface2 = "#585b70"
|
||||||
|
surface1 = "#45475a"
|
||||||
|
surface0 = "#313244"
|
||||||
|
base = "#1e1e2e"
|
||||||
|
mantle = "#181825"
|
||||||
|
crust = "#11111b"
|
||||||
|
|
||||||
|
# }}}
|
||||||
|
|
@ -8,6 +8,6 @@
|
||||||
# ln -sf $DOTFILES/tools/fish ~/.config/fish
|
# ln -sf $DOTFILES/tools/fish ~/.config/fish
|
||||||
|
|
||||||
if command -v starship > /dev/null
|
if command -v starship > /dev/null
|
||||||
#set -gx STARSHIP_CONFIG "~/.dotfiles/tools/starship/starship_fish.toml"
|
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
# Date: 2024-12-01
|
# Date: 2024-12-01
|
||||||
# Author: js0ny
|
# Author: js0ny
|
||||||
# Use starship to set prompt
|
# Use starship to set prompt
|
||||||
$ENV:STARSHIP_CONFIG = Join-Path $DOTFILES "tools" "starship" "starship_pwsh.toml"
|
|
||||||
|
|
||||||
Invoke-Expression (&starship init powershell)
|
Invoke-Expression (&starship init powershell)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,144 +0,0 @@
|
||||||
format = """
|
|
||||||
[](#9A348E)\
|
|
||||||
$os\
|
|
||||||
$username\
|
|
||||||
[](bg:#DA627D fg:#9A348E)\
|
|
||||||
$directory\
|
|
||||||
[](fg:#DA627D bg:#FCA17D)\
|
|
||||||
$git_branch\
|
|
||||||
$git_status\
|
|
||||||
[](fg:#FCA17D bg:#86BBD8)\
|
|
||||||
$c\
|
|
||||||
$elixir\
|
|
||||||
$elm\
|
|
||||||
$golang\
|
|
||||||
$gradle\
|
|
||||||
$haskell\
|
|
||||||
$java\
|
|
||||||
$julia\
|
|
||||||
$nodejs\
|
|
||||||
$nim\
|
|
||||||
$rust\
|
|
||||||
$scala\
|
|
||||||
[](fg:#86BBD8 bg:#06969A)\
|
|
||||||
$docker_context\
|
|
||||||
[](fg:#06969A bg:#33658A)\
|
|
||||||
$time\
|
|
||||||
[ ](fg:#33658A)\
|
|
||||||
"""
|
|
||||||
|
|
||||||
# Disable the blank line at the start of the prompt
|
|
||||||
# add_newline = false
|
|
||||||
|
|
||||||
# You can also replace your username with a neat symbol like or disable this
|
|
||||||
# and use the os module below
|
|
||||||
[username]
|
|
||||||
show_always = true
|
|
||||||
style_user = "bg:#9A348E"
|
|
||||||
style_root = "bg:#9A348E"
|
|
||||||
format = '[$user ]($style)'
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
# An alternative to the username module which displays a symbol that
|
|
||||||
# represents the current operating system
|
|
||||||
[os]
|
|
||||||
style = "bg:#9A348E"
|
|
||||||
disabled = true # Disabled by default
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
style = "bg:#DA627D"
|
|
||||||
format = "[ $path ]($style)"
|
|
||||||
truncation_length = 3
|
|
||||||
truncation_symbol = "…/"
|
|
||||||
|
|
||||||
# Here is how you can shorten some long paths by text replacement
|
|
||||||
# similar to mapped_locations in Oh My Posh:
|
|
||||||
[directory.substitutions]
|
|
||||||
"Documents" = " "
|
|
||||||
"Downloads" = " "
|
|
||||||
"Music" = " "
|
|
||||||
"Pictures" = " "
|
|
||||||
# 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 " = " "
|
|
||||||
|
|
||||||
[c]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#06969A"
|
|
||||||
format = '[ $symbol $context ]($style)'
|
|
||||||
|
|
||||||
[elixir]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[elm]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = ""
|
|
||||||
style = "bg:#FCA17D"
|
|
||||||
format = '[ $symbol $branch ]($style)'
|
|
||||||
|
|
||||||
[git_status]
|
|
||||||
style = "bg:#FCA17D"
|
|
||||||
format = '[$all_status$ahead_behind ]($style)'
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[gradle]
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[java]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[julia]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = ""
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[nim]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = ""
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[scala]
|
|
||||||
symbol = " "
|
|
||||||
style = "bg:#86BBD8"
|
|
||||||
format = '[ $symbol ($version) ]($style)'
|
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
time_format = "%R" # Hour:Minute Format
|
|
||||||
style = "bg:#33658A"
|
|
||||||
format = '[ ♥ $time ]($style)'
|
|
||||||
|
|
@ -1,210 +0,0 @@
|
||||||
# starship.toml
|
|
||||||
# ~/.config/starship.toml
|
|
||||||
format = '''$os$time $username @ $hostname $directory $all$character'''
|
|
||||||
continuation_prompt = "[ cr >](bold cyan) "
|
|
||||||
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
format = '[\[$time\]](purple)'
|
|
||||||
time_format = '%H:%M'
|
|
||||||
|
|
||||||
[username]
|
|
||||||
format = '[$user](bold)'
|
|
||||||
show_always = true
|
|
||||||
|
|
||||||
[hostname]
|
|
||||||
ssh_only = false
|
|
||||||
ssh_symbol = ' '
|
|
||||||
|
|
||||||
# Currently vimcmd_symbol is not supported in Nu, define in `config.nu` instead
|
|
||||||
[character]
|
|
||||||
success_symbol = ""
|
|
||||||
error_symbol = ""
|
|
||||||
vimcmd_symbol = ""
|
|
||||||
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
truncation_length = 2
|
|
||||||
truncate_to_repo = true
|
|
||||||
read_only = " "
|
|
||||||
style ="bold cyan"
|
|
||||||
truncation_symbol = ".../"
|
|
||||||
|
|
||||||
[directory.substitutions]
|
|
||||||
"~/Documents" = " "
|
|
||||||
"~/Downloads" = " "
|
|
||||||
"~/Music" = " "
|
|
||||||
"~/Pictures" = " "
|
|
||||||
"Source" = " "
|
|
||||||
"src" = " "
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[buf]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[c]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[conda]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[crystal]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[dart]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elixir]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elm]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fennel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fossil_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_commit]
|
|
||||||
tag_symbol = ' '
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[guix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haxe]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[hg_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[java]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[julia]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[kotlin]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[memory_usage]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[meson]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nim]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ocaml]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[os]
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os.symbols]
|
|
||||||
Alpaquita = " "
|
|
||||||
Alpine = " "
|
|
||||||
AlmaLinux = " "
|
|
||||||
Amazon = " "
|
|
||||||
Android = " "
|
|
||||||
Arch = " "
|
|
||||||
Artix = " "
|
|
||||||
CentOS = " "
|
|
||||||
Debian = " "
|
|
||||||
DragonFly = " "
|
|
||||||
Emscripten = " "
|
|
||||||
EndeavourOS = " "
|
|
||||||
Fedora = " "
|
|
||||||
FreeBSD = " "
|
|
||||||
Garuda = " "
|
|
||||||
Gentoo = " "
|
|
||||||
HardenedBSD = " "
|
|
||||||
Illumos = " "
|
|
||||||
Kali = " "
|
|
||||||
Linux = " "
|
|
||||||
Mabox = " "
|
|
||||||
Macos = " "
|
|
||||||
Manjaro = " "
|
|
||||||
Mariner = " "
|
|
||||||
MidnightBSD = " "
|
|
||||||
Mint = " "
|
|
||||||
NetBSD = " "
|
|
||||||
NixOS = " "
|
|
||||||
OpenBSD = " "
|
|
||||||
openSUSE = " "
|
|
||||||
OracleLinux = " "
|
|
||||||
Pop = " "
|
|
||||||
Raspbian = " "
|
|
||||||
Redhat = " "
|
|
||||||
RedHatEnterprise = " "
|
|
||||||
RockyLinux = " "
|
|
||||||
Redox = " "
|
|
||||||
Solus = " "
|
|
||||||
SUSE = " "
|
|
||||||
Ubuntu = " "
|
|
||||||
Unknown = " "
|
|
||||||
Void = " "
|
|
||||||
Windows = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[perl]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[php]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[pijul_channel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rlang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ruby]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[scala]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[swift]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[zig]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[gradle]
|
|
||||||
symbol = " "
|
|
||||||
|
|
@ -1,239 +0,0 @@
|
||||||
# starship.toml
|
|
||||||
# ~/.config/starship.toml
|
|
||||||
format = '''$os$time $username @ $hostname $directory $all$character'''
|
|
||||||
continuation_prompt = "[CR > ](bold cyan) "
|
|
||||||
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
palette = "catppuccin_mocha"
|
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
format = '[\[$time\]](purple)'
|
|
||||||
time_format = '%H:%M'
|
|
||||||
|
|
||||||
[username]
|
|
||||||
format = '[$user](bold)'
|
|
||||||
show_always = true
|
|
||||||
|
|
||||||
[hostname]
|
|
||||||
ssh_only = false
|
|
||||||
ssh_symbol = ' '
|
|
||||||
|
|
||||||
[character]
|
|
||||||
success_symbol = "[PS > ](bold green)"
|
|
||||||
error_symbol = "[PS > ](bold red)"
|
|
||||||
vimcmd_symbol = "[Vi < ](bold green)"
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
truncation_length = 2
|
|
||||||
truncate_to_repo = true
|
|
||||||
read_only = " "
|
|
||||||
style ="bold cyan"
|
|
||||||
truncation_symbol = ".../"
|
|
||||||
|
|
||||||
[directory.substitutions]
|
|
||||||
"~/Documents" = " "
|
|
||||||
"~/Downloads" = " "
|
|
||||||
"~/Music" = " "
|
|
||||||
"~/Pictures" = " "
|
|
||||||
"Source" = " "
|
|
||||||
"src" = " "
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[buf]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[c]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[conda]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[crystal]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[dart]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elixir]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elm]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fennel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fossil_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_commit]
|
|
||||||
tag_symbol = ' '
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[guix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haxe]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[hg_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[java]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[julia]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[kotlin]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[memory_usage]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[meson]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nim]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ocaml]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[os]
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os.symbols]
|
|
||||||
Alpaquita = " "
|
|
||||||
Alpine = " "
|
|
||||||
AlmaLinux = " "
|
|
||||||
Amazon = " "
|
|
||||||
Android = " "
|
|
||||||
Arch = " "
|
|
||||||
Artix = " "
|
|
||||||
CentOS = " "
|
|
||||||
Debian = " "
|
|
||||||
DragonFly = " "
|
|
||||||
Emscripten = " "
|
|
||||||
EndeavourOS = " "
|
|
||||||
Fedora = " "
|
|
||||||
FreeBSD = " "
|
|
||||||
Garuda = " "
|
|
||||||
Gentoo = " "
|
|
||||||
HardenedBSD = " "
|
|
||||||
Illumos = " "
|
|
||||||
Kali = " "
|
|
||||||
Linux = " "
|
|
||||||
Mabox = " "
|
|
||||||
Macos = " "
|
|
||||||
Manjaro = " "
|
|
||||||
Mariner = " "
|
|
||||||
MidnightBSD = " "
|
|
||||||
Mint = " "
|
|
||||||
NetBSD = " "
|
|
||||||
NixOS = " "
|
|
||||||
OpenBSD = " "
|
|
||||||
openSUSE = " "
|
|
||||||
OracleLinux = " "
|
|
||||||
Pop = " "
|
|
||||||
Raspbian = " "
|
|
||||||
Redhat = " "
|
|
||||||
RedHatEnterprise = " "
|
|
||||||
RockyLinux = " "
|
|
||||||
Redox = " "
|
|
||||||
Solus = " "
|
|
||||||
SUSE = " "
|
|
||||||
Ubuntu = " "
|
|
||||||
Unknown = " "
|
|
||||||
Void = " "
|
|
||||||
Windows = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[perl]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[php]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[pijul_channel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rlang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ruby]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[scala]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[swift]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[zig]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[gradle]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[palettes.catppuccin_mocha]
|
|
||||||
rosewater = "#f5e0dc"
|
|
||||||
flamingo = "#f2cdcd"
|
|
||||||
pink = "#f5c2e7"
|
|
||||||
mauve = "#cba6f7"
|
|
||||||
red = "#f38ba8"
|
|
||||||
maroon = "#eba0ac"
|
|
||||||
peach = "#fab387"
|
|
||||||
yellow = "#f9e2af"
|
|
||||||
green = "#a6e3a1"
|
|
||||||
teal = "#94e2d5"
|
|
||||||
sky = "#89dceb"
|
|
||||||
sapphire = "#74c7ec"
|
|
||||||
blue = "#89b4fa"
|
|
||||||
lavender = "#b4befe"
|
|
||||||
text = "#cdd6f4"
|
|
||||||
subtext1 = "#bac2de"
|
|
||||||
subtext0 = "#a6adc8"
|
|
||||||
overlay2 = "#9399b2"
|
|
||||||
overlay1 = "#7f849c"
|
|
||||||
overlay0 = "#6c7086"
|
|
||||||
surface2 = "#585b70"
|
|
||||||
surface1 = "#45475a"
|
|
||||||
surface0 = "#313244"
|
|
||||||
base = "#1e1e2e"
|
|
||||||
mantle = "#181825"
|
|
||||||
crust = "#11111b"
|
|
||||||
|
|
||||||
|
|
@ -1,209 +0,0 @@
|
||||||
# starship.toml
|
|
||||||
# ~/.config/starship.toml
|
|
||||||
format = '''$os$time $username @ $hostname $directory $all$character'''
|
|
||||||
continuation_prompt = "[r % ](bold cyan) "
|
|
||||||
|
|
||||||
add_newline = true
|
|
||||||
|
|
||||||
[time]
|
|
||||||
disabled = false
|
|
||||||
format = '[\[$time\]](purple)'
|
|
||||||
time_format = '%H:%M'
|
|
||||||
|
|
||||||
[username]
|
|
||||||
format = '[$user](bold)'
|
|
||||||
show_always = true
|
|
||||||
|
|
||||||
[hostname]
|
|
||||||
ssh_only = false
|
|
||||||
ssh_symbol = ' '
|
|
||||||
|
|
||||||
[character]
|
|
||||||
success_symbol = "[z % ](bold green)"
|
|
||||||
error_symbol = "[z % ](bold red)"
|
|
||||||
vimcmd_symbol = "[v ! ](bold green)"
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
truncation_length = 2
|
|
||||||
truncate_to_repo = true
|
|
||||||
read_only = " "
|
|
||||||
style ="bold cyan"
|
|
||||||
truncation_symbol = ":"
|
|
||||||
fish_style_pwd_dir_length = 1
|
|
||||||
|
|
||||||
[directory.substitutions]
|
|
||||||
"~/Documents" = " "
|
|
||||||
"~/Downloads" = " "
|
|
||||||
"~/Music" = " "
|
|
||||||
"~/Pictures" = " "
|
|
||||||
"Source" = " "
|
|
||||||
"src" = " "
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[buf]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[c]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[conda]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[crystal]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[dart]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elixir]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[elm]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fennel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[fossil_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[git_commit]
|
|
||||||
tag_symbol = ' '
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[guix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haskell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[haxe]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[hg_branch]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[java]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[julia]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[kotlin]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[memory_usage]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[meson]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nim]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nix_shell]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ocaml]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[os]
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os.symbols]
|
|
||||||
Alpaquita = " "
|
|
||||||
Alpine = " "
|
|
||||||
AlmaLinux = " "
|
|
||||||
Amazon = " "
|
|
||||||
Android = " "
|
|
||||||
Arch = " "
|
|
||||||
Artix = " "
|
|
||||||
CentOS = " "
|
|
||||||
Debian = " "
|
|
||||||
DragonFly = " "
|
|
||||||
Emscripten = " "
|
|
||||||
EndeavourOS = " "
|
|
||||||
Fedora = " "
|
|
||||||
FreeBSD = " "
|
|
||||||
Garuda = " "
|
|
||||||
Gentoo = " "
|
|
||||||
HardenedBSD = " "
|
|
||||||
Illumos = " "
|
|
||||||
Kali = " "
|
|
||||||
Linux = " "
|
|
||||||
Mabox = " "
|
|
||||||
Macos = " "
|
|
||||||
Manjaro = " "
|
|
||||||
Mariner = " "
|
|
||||||
MidnightBSD = " "
|
|
||||||
Mint = " "
|
|
||||||
NetBSD = " "
|
|
||||||
NixOS = " "
|
|
||||||
OpenBSD = " "
|
|
||||||
openSUSE = " "
|
|
||||||
OracleLinux = " "
|
|
||||||
Pop = " "
|
|
||||||
Raspbian = " "
|
|
||||||
Redhat = " "
|
|
||||||
RedHatEnterprise = " "
|
|
||||||
RockyLinux = " "
|
|
||||||
Redox = " "
|
|
||||||
Solus = " "
|
|
||||||
SUSE = " "
|
|
||||||
Ubuntu = " "
|
|
||||||
Unknown = " "
|
|
||||||
Void = " "
|
|
||||||
Windows = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[perl]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[php]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[pijul_channel]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rlang]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[ruby]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[scala]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[swift]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[zig]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[gradle]
|
|
||||||
symbol = " "
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
# Author: js0ny
|
# Author: js0ny
|
||||||
# Sourced by user's zshrc 在用户的 zshrc 中被引用
|
# Sourced by user's zshrc 在用户的 zshrc 中被引用
|
||||||
|
|
||||||
export STARSHIP_CONFIG=$DOTFILES/tools/starship/starship_zsh.toml
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue