Last active
September 20, 2024 16:56
-
-
Save sanmue/47baf9c17f68b3f00d52a23e0a7882cb to your computer and use it in GitHub Desktop.
New updated Version: https://gist.github.com/sanmue/f0ed97bed95c7bc7926cc3a88949bd39; starship.toml; 'Starship shell prompt' config file; Variant 1: two line prompt, no background in top line, see screenshot in the comment below for more Info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# ~/.config/starship.toml | |
# Customizing the prompt (including desired modules at desired position and sequence): | |
# *** Borrowed from a design seen in a zsh (should be from https://github.com/romkatv/powerlevel10k) | |
format = """ | |
[╭╴](fg:#505050)[$os]($style)[ ](fg:#505050 bold)[$username$hostname$sudo$directory\ | |
$git_branch$git_commit$git_state$git_metrics$git_status\ | |
$kubernetes$vcsh$fossil_branch$hg_branch$pijul_channel$docker_context$package$c\ | |
$cmake$cobol$daml$dart$deno$dotneti$elixir$ulm$erlang$fennel$golang$guix_shell\ | |
$haskell$haxe$helm$java$julia$kotlin$gradle$lua$nim$nodejs$ocaml$opa$perl$php\ | |
$pulumi$purescript$python$raku$rlang$red$ruby$rust$scala$swift$terraform$vlang\ | |
$vagrant$zig$buf$nix_shell$conda$meson$spack$aws$gcloud$openstack$azure$crystal\ | |
$container$shell$env_var$custom$jobs$memory_usage$battery$time$cmd_duration \ | |
$fill $line_break]($style)\ | |
[╰╴](fg:#505050)[$status$localip$character]($style)""" | |
# - '$line_break', i.e. everything from the next line on refers to the second line of the prompt. | |
# - '\n' for a line break could work too on your system, but it is just not a 'starship' module. | |
# - Just let the module do the correct line break. | |
# - Some modules listed above will not show up (all the time), as their default value is 'disabled = true' or | |
# they are only displayed under certain conditions. | |
# They have to be enabled manually, e.g. see below "# Customizing and enabling some modules used above" | |
# https://starship.rs/config/ | |
# Don't be confused if you see this toml file via web browser on Starship website, gist, ... and you don't see any "real" symbols here. | |
# If Nerd-fonts are already installed on your system, it should work | |
# Recomended Fonts: Meslo Nerd Font patched for Powerlevel10k | |
# Link: https://github.com/romkatv/powerlevel10k?tab=readme-ov-file#meslo-nerd-font-patched-for-powerlevel10k | |
# --> see "Manual font installation": Links for 4 Font Types | |
# Inserts a blank line between shell prompts: | |
add_newline = true | |
# Customization and activation of some modules: | |
# Listed in the order of their position in the module row above | |
[os] | |
format = "[$symbol]($style) " | |
style = "fg:BBBBBB" | |
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 = "" # "" | |
OpenCloudOS = "☁️" | |
openEuler = "" | |
openSUSE = "" | |
OracleLinux = "⊂⊃" | |
Pop = "" # "" | |
Raspbian = "" | |
Redhat = "" | |
RedHatEnterprise = "" | |
Redox = "🧪" | |
Solus = "" # " " | |
SUSE = "" | |
Ubuntu = "" | |
Unknown = "" | |
Windows = "" | |
[username] | |
format = '[$user]($style) ' | |
style_user = 'green bold' | |
style_root = 'red bold' | |
show_always = false | |
disabled = false | |
[hostname] | |
format = '[$ssh_symbol](green bold)[$hostname](fg:green bold) [](cyan) ' | |
ssh_only = true | |
ssh_symbol = ' ' # '⇒' # ' ' # 'fi⇒' | |
#trim_at = '.companyname.com' | |
disabled = false | |
[sudo] | |
style = 'red bold' | |
symbol = ' ❯ ' # ' ❯ ' | |
disabled = false | |
[directory] | |
format = '[$read_only]($read_only_style)[$repo_root]($repo_root_style)[$path]($style) ' | |
style = 'cyan bold' | |
read_only_style = 'cyan' | |
read_only = ' ' # ' ' # ' '' | |
home_symbol = ' ~' | |
truncation_length = 3 | |
truncation_symbol = '…/' | |
truncate_to_repo = true | |
repo_root_style = 'cyan bold' #'fg:#E04D27 bold' | |
use_os_path_sep = true | |
disabled = false | |
[git_branch] | |
format = '[ $symbol $branch(:$remote_branch)]($style) ' | |
style = 'fg:#E04D27' | |
symbol = '' | |
#ignore_branches = ['master', 'main'] | |
[git_commit] | |
format = '[\($hash$tag\)]($style)[ ]()' | |
style = 'fg:#E04D27' | |
commit_hash_length = 8 | |
tag_symbol = ' ' # ' '' | |
tag_disabled = false | |
disabled = false | |
[git_metrics] | |
format = '[\[+$added/]($added_style)[-$deleted\]]($deleted_style) ' | |
added_style = 'fg:#E04D27' | |
deleted_style = 'fg:#E04D27' | |
disabled = false | |
[git_status] | |
format = '[$all_status$ahead_behind]($style) ' | |
style = 'fg:#E04D27' | |
conflicted = '${count} ' | |
ahead = '${count}⇡ ' | |
behind = '${count}⇣ ' | |
diverged = '⇕${ahead_count}⇡${behind_count}⇣ ' | |
up_to_date = '✓ ' | |
untracked = '[${count}ﳇ ](red)' # ' ' # '? ' | |
stashed = '[${count} ](fg:#A52A2A)' # '📦 '# ' ' # ' ' # ' ' # ' ' | |
modified = '[${count} ](fg:#C8AC00)' # '📝' # '! ' | |
staged = '[${count} ](green)' # '+ ' | |
renamed = '${count} ' # ' ' | |
deleted = '${count} ' # '🗑 ' '- ' | |
disabled = false | |
[jobs] | |
format = '[ $number$symbol]($style) ' | |
style = 'blue' | |
symbol = '省' # '廒' # '' # '' # '✦' | |
symbol_threshold = 1 | |
number_threshold = 4 | |
disabled = false | |
[memory_usage] | |
format = '[ $symbol ${ram} ${swap}]($style) ' | |
style = 'purple dimmed' | |
symbol = ' 北' # ' 痢' # ' / ' # ' ' # ' ' # ' ' # ' ' ' ' | |
threshold = 75 | |
disabled = false | |
[cmd_duration] | |
format = '[ $duration]($style) ' | |
style = 'yellow' | |
min_time = 500 | |
disabled = false | |
[fill] | |
style = 'fg:#505050' | |
symbol = '─' | |
[status] | |
format = '[$symbol$status $hex_status $signal_number-$signal_name]($style) ' | |
style = 'red' | |
symbol = '✘ ' | |
disabled = false | |
[localip] | |
format = '[$localipv4](green bold) ' | |
ssh_only = true | |
disabled = false |
Author
sanmue
commented
Mar 20, 2023
♥ love it, started using it today together with a windows terminal colorscheme called afterglow and nushell, such a lovely cli experience!
Glad you like it :-)
I did not know Nushell yet. I looked at it on github and in a report, thanks for the tip.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment