From a11c0ecab423b05334ddacce0aead9f3fdb54976 Mon Sep 17 00:00:00 2001 From: Graham Hall Date: Wed, 3 Apr 2024 21:08:23 -0400 Subject: [PATCH] updates to starship.toml --- misc_config/starship.toml | 130 ++++++++++---------------------------- 1 file changed, 33 insertions(+), 97 deletions(-) diff --git a/misc_config/starship.toml b/misc_config/starship.toml index 1c0c366..6a8dc43 100644 --- a/misc_config/starship.toml +++ b/misc_config/starship.toml @@ -1,114 +1,50 @@ -add_newline = false +format = """ +$hostname\ +[](fg:blue bg:yellow)\ +$directory\ +[](fg:yellow bg:purple)\ +$git_branch\ +$git_status\ +[](purple) +$character""" + +[hostname] +ssh_only = false +format = '[ 󰀶 $user@$ssh_symbol$hostname ](bg:blue)' [directory] -format = "[$path](underline #f57800)[$read_only]($read_only_style) " -truncation_length = 3 +format = "[ $path ](bg:yellow)" +truncation_length = 10 home_symbol = "~" -read_only_style = "bold red" -truncation_symbol = "󰉋 " +truncation_symbol = "…/" [character] -success_symbol = "[](bold green)" -error_symbol = "[✗ ](bold red)" +success_symbol = "[󰘍 ](bold green)" +error_symbol = "[x](bold red)" [username] -format = "[$user](bold blue)[ @ ](red)" +format = "[$user](bold blue)[ - ](red)" disabled = false show_always = true [git_branch] -symbol = "git " +symbol = " " +format = '[ $symbol$branch(:$remote_branch) ](bg:purple)' + +[git_status] +format = '[$all_status$ahead_behind ](bg:purple)' +modified = "!$count" +untracked = "?$count" +stashed = "󰆦 !" +ahead = "↑$count" +behind = "↓$count" [cmd_duration] -min_time = 100 -format = " [took](bold yellow) [$duration](bold green)" +disabled = true [aws] disabled = true -# [conda] -# symbol = "conda " -# -# [crystal] -# symbol = "crystal " -# -# [cmake] -# symbol = "cmake " -# -# [dart] -# symbol = "dart " -# -# [deno] -# symbol = "deno " -# -# [dotnet] -# symbol = ".NET " -# -# -# [docker_context] -# symbol = "docker " -# -# [elixir] -# symbol = "elixir " -# -# [elm] -# symbol = "elm " -# -# [golang] -# symbol = "go " -# -# [hg_branch] -# symbol = "hg " -# -# [java] -# symbol = "java " -# -# [julia] -# symbol = "julia " -# -# [kotlin] -# symbol = "kotlin " -# -# [nodejs] -# symbol = "nodejs " -# -# [bun] -# symbol = "bun " -# -# [nim] -# symbol = "nim " -# -# [nix_shell] -# symbol = "nix_shell " -# -# [ocaml] -# symbol = "ocaml " -# -# [package] -# disabled = false -# symbol = "package " -# -# [perl] -# symbol = "perl " -# -# [php] -# symbol = "php " -# -# [purescript] -# symbol = "purescript " -# -# [python] -# symbol = "python " -# python_binary = "python3" -# -# [ruby] -# symbol = "ruby " -# -# [rust] -# symbol = "rust " -# -# [scala] -# symbol = "scala " -# -# [swift] -# symbol = "swift " +[nodejs] +detect_files = ['package.json', '.node-version', '!bun.lockb'] +