Skip to content

Instantly share code, notes, and snippets.

@rjrobinson
Created February 15, 2023 21:38
Show Gist options
  • Save rjrobinson/76e85cc607bae90f27fbfa1a8fdf4c31 to your computer and use it in GitHub Desktop.
Save rjrobinson/76e85cc607bae90f27fbfa1a8fdf4c31 to your computer and use it in GitHub Desktop.

Revisions

  1. rjrobinson created this gist Feb 15, 2023.
    171 changes: 171 additions & 0 deletions starship.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,171 @@
    "$schema" = 'https://starship.rs/config-schema.json'

    format = """
    $username\
    [▶](bg:#DA627D fg:cyan)\
    $directory\
    [▶](fg:#DA627D bg:#bd2c00)\
    $golang\
    $java\
    $julia\
    $nodejs\
    $nim\
    $ruby\
    [▶](bg:#6e5494 fg:#bd2c00)\
    $git_branch\
    $git_commit\
    $git_state\
    $git_metrics\
    $git_status\
    $cmd_duration\
    [▶](fg:#6e5494)\
    """


    # [▶](bg:#4078c0 fg:#6e5494)\
    # $time\

    # Disable the blank line at the start of the prompt
    # add_newline = false

    # You can also replace your username with a neat symbol like  to save some space
    [username]
    style_user = "bg:cyan bold fg:black" # sometimes you need "bold" because bg: will use "faded" version
    style_root = "bg:white bold fg:black" # root has a different scheme to make "su root" obvious
    # the foreground and background colors are reversed for the fade-out
    format =" [░▒▓█](fg:cyan bg:black)[$user]($style)"
    disabled = false
    show_always = true

    [character]
    success_symbol = "[➜](bold green) "
    error_symbol = "[✗](bold red) "

    [cmd_duration]
    min_time = 500
    style = "bg:#4078c0 fg:#f5f5f5"
    format = "[$duration]($style)"


    # same reversed color scheme
    [hostname]
    ssh_only = false
    format = "🕱 [ $hostname ]($style)[█▓▒░](fg:cyan bg:black) "
    disabled = false
    trim_at = "."
    style = "bg:cyan bold fg:black" # notice bold again. might just be my system.

    [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]
    "C195 - Advanced Java Concepts" = "C195"
    "velocity" = "VELOCITY"
    "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  " = "  "

    [docker_context]
    disabled = true
    symbol = "🐳"
    style = "bg:#384d54 fg:#0db7ed"
    format = '[ $symbol $context ]($style)$path'

    [elixir]
    symbol = ""
    style = "bg:#86BBD8"
    format = '[ $symbol ($version) ]($style)'

    [elm]
    symbol = ""
    style = "bg:#86BBD8"
    format = '[ $symbol ($version) ]($style)'

    [git_branch]
    symbol = ""
    style = "bg:#6e5494 bold fg:#f5f5f5"
    format = '[ $symbol $branch ]($style)'

    [git_status]
    disabled = false
    style = "bg:#6e5494 bold fg:#f5f5f5"
    format = '[$all_status$ahead_behind ]($style)'

    [git_commit]
    disabled = false
    commit_hash_length = 6
    style = "bg:#6e5494 bold fg:#f5f5f5"
    format = "[($hash)]($style) [($tag)]($style)"

    [git_state]
    rebase = "REBASING"
    merge = "MERGING"
    revert = "REVERTING"
    cherry_pick = "CHERRY-PICKING"
    bisect = "BISECTING"
    am = "AM"
    am_or_rebase = "AM/REBASE"
    style = "bg:#6e5494 bold fg:#f5f5f5 bold"
    format = '([$state($progress_current/$progress_total)]($style)) '
    disabled = false

    ## GIT CONGIFURATION


    [golang]
    symbol = ""
    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]
    disabled = true
    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)'

    [time]
    disabled = false
    time_format = "%R" # Hour:Minute Format
    style = "bg:#4078c0 fg:#f5f5f5"
    format = '[ ♥ $time ]($style)'

    [ruby]
    symbol = "💎"
    style = "bg:#bd2c00 fg:#f5f5f5 bold"
    format = '[ $symbol ($version) ]($style)'