dotfiles

Linux and macOS dotfiles
git clone https://github.com/michaelneuper/dotfiles.git
README | Files | Log | Refs

commit 9eca7fa7d3c2b4382ec968396265e039133bee48
parent c34c514e5d1f645af9f7e14d152b843b90e97b74
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Thu, 21 May 2026 16:00:32 +0200

update prompt config

Diffstat:
M.config/starship.toml | 88+++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------
1 file changed, 57 insertions(+), 31 deletions(-)

diff --git a/.config/starship.toml b/.config/starship.toml @@ -1,33 +1,44 @@ format = """ -[[$directory${custom.giturl}$git_branch$git_state]($style)](yellow)$git_status +[$directory$git_branch$git_state]($style) ${custom.giturl}$git_status $character""" palette = "gruvbox_dark" [palettes.gruvbox_dark] -color_fg0 = '#fbf1c7' -color_bg1 = '#3c3836' -color_bg3 = '#665c54' -color_blue = '#458588' -color_aqua = '#689d6a' -color_green = '#98971a' -color_orange = '#d65d0e' -color_purple = '#b16286' -color_red = '#cc241d' -color_yellow = '#d79921' +color_fg0 = "#fbf1c7" +color_bg1 = "#3c3836" +color_bg3 = "#665c54" +color_blue = "#458588" +color_aqua = "#689d6a" +color_green = "#98971a" +color_orange = "#d65d0e" +color_purple = "#b16286" +color_red = "#cc241d" +color_yellow = "#d79921" + +[hostname] +format = "[$hostname](blue)" +aliases = { "Michaels-MacBook-Pro" = "macos" } +ssh_only = false +disabled = false + +[username] +format = "[$user]($style)" +style_user = "bg0" +style_root = "black bold" +show_always = true +disabled = false [directory] -# style = "bold violet" -truncation_length = 0 +repo_root_format = "[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style)" +truncation_length = 3 truncate_to_repo = true -repo_root_format = "[$before_root_path]($style)[$repo_root]($repo_root_style)[$path]($style)[$read_only]($read_only_style) " read_only = "" read_only_style = "red" [custom.giturl] -# disabled = true -style = "white" description = "Display symbol for remote Git server" +style = "white" command = """ GIT_REMOTE=$(command git ls-remote --get-url 2> /dev/null) if [[ "$GIT_REMOTE" =~ "github" ]]; then @@ -44,13 +55,22 @@ fi echo "$GIT_REMOTE_SYMBOL " """ -when = 'git rev-parse --is-inside-work-tree 2> /dev/null' -format = "at $output" +when = "git rev-parse --is-inside-work-tree 2> /dev/null" +format = "$output" + +[git_branch] +format = "on [$symbol $branch]($style)" +symbol = "" +style = "purple" +# symbol = "[](color_bg1) " +# style = "fg:color_fg0 bg:color_bg1" +# format = ' on [$symbol$branch]($style)[](color_bg1)' [git_status] +format = " [($all_status$ahead_behind )]($style)" style = "bold" -ahead = "[${count}](green)" -behind = "[${count}](red)" +ahead = "[ ${count}](green)" +behind = "[ ${count}](red)" up_to_date = "" deleted = "[ ](red)" conflicted = "" @@ -59,22 +79,28 @@ stashed = "" modified = "[ ](yellow)" staged = "" renamed = "[ ](purple)" -format = ' [($all_status$ahead_behind )]($style)' -[git_branch] -# symbol = "[](color_bg1) " -# style = "fg:color_fg0 bg:color_bg1" -# format = ' on [$symbol$branch]($style)[](color_bg1)' -symbol = " " -format = " on [$symbol$branch]($style)" [character] # Tells whether last command was successful or not -success_symbol = "[❯](bold green)" -error_symbol = "[❯](bold red)" -vicmd_symbol = "[❮](bold purple)" +success_symbol = "[λ](bold green)" +error_symbol = "[λ](bold red)" +vicmd_symbol = "[y](bold purple)" [status] -symbol = "x" format = '[\[$symbol$status_common_meaning$status_signal_name$status_maybe_int\]]($style)' +symbol = "x" map_symbol = true disabled = false + +[os] +format = "$symbol" +disabled = false + +[os.symbols] +Arch = "󰣇 " +Kali = " " +Linux = " " +Macos = " " +OpenBSD = " " +Raspbian = " " +Ubuntu = " "