dotfiles/.config/starship.toml (2464B)
format = """ [$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" [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] 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 read_only = "" read_only_style = "red" [custom.giturl] 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 GIT_REMOTE_SYMBOL=" " elif [[ "$GIT_REMOTE" =~ "gitlab" ]]; then GIT_REMOTE_SYMBOL=" " elif [[ "$GIT_REMOTE" =~ "bitbucket" ]]; then GIT_REMOTE_SYMBOL=" " elif [[ "$GIT_REMOTE" =~ "git" ]]; then GIT_REMOTE_SYMBOL="" else GIT_REMOTE_SYMBOL=" " fi echo "$GIT_REMOTE_SYMBOL " """ 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)" up_to_date = "" deleted = "[ ](red)" conflicted = "" untracked = "[ ](white)" stashed = "" modified = "[ ](yellow)" staged = "" renamed = "[ ](purple)" [character] # Tells whether last command was successful or not success_symbol = "[λ](bold green)" error_symbol = "[λ](bold red)" vicmd_symbol = "[y](bold purple)" [status] 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 = " "