Skip to content

Instantly share code, notes, and snippets.

@mvlsqz
Created July 13, 2023 17:49
Show Gist options
  • Save mvlsqz/02c2d5f9a1db538fe4d99322e71ca29a to your computer and use it in GitHub Desktop.
Save mvlsqz/02c2d5f9a1db538fe4d99322e71ca29a to your computer and use it in GitHub Desktop.

Revisions

  1. mvlsqz created this gist Jul 13, 2023.
    151 changes: 151 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,151 @@
    add_newline = false
    format = """
    [](#C4A6F1)\
    $os\
    $username\
    [](bg:#E48FA6 fg:#C4A6F1)\
    $directory\
    [](fg:#E48FA6 bg:#EFB48D)\
    $git_branch\
    $git_status\
    [](fg:#EFB48D bg:#86BBD8)\
    $c\
    $elixir\
    $elm\
    $golang\
    $gradle\
    $haskell\
    $java\
    $julia\
    $nodejs\
    $nim\
    $rust\
    $scala\
    $python\
    [](fg:#86BBD8 bg:#9BD9E8)\
    $docker_context\
    [](fg:#9BD9E8 bg:#91B1F4)\
    $time\
    [ ](fg:#91B1F4)\
    """

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

    # You can also replace your username with a neat symbol like  or disable this
    # and use the os module below
    [username]
    show_always = true
    style_user = "bg:#C4A6F1 fg:#1E1E2E"
    style_root = "bg:#C4A6F1"
    format = '[  $user ]($style bold)'
    disabled = false

    # An alternative to the username module which displays a symbol that
    # represents the current operating system
    [os]
    style = "bg:#9A348E"
    disabled = true # Disabled by default

    [directory]
    style = "bg:#E48FA6 fg:#1E1E2E"
    format = "[ $path ]($style bold)"
    truncation_length = 1
    truncation_symbol = ""

    # Here is how you can shorten some long paths by text replacement
    # similar to mapped_locations in Oh My Posh:
    [directory.substitutions]
    "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  " = "  "

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

    [docker_context]
    symbol = " "
    style = "bg:#9BD9E8 fg:#1E1E2E"
    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:#EFB48D fg:#1E1E2E"
    format = '[ $symbol $branch ]($style bold)'

    [git_status]
    style = "bg:#EFB48D fg:#1E1E2E"
    format = '[$all_status$ahead_behind ]($style bold)'

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

    [gradle]
    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]
    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)'

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

    [python]
    symbol = " "
    style = "bg:#86BBD8 fg:#1E1E2E"
    format = '[ $symbol ($version) ]($style)'

    [time]
    disabled = false
    time_format = "%R" # Hour:Minute Format
    style = "bg:#91B1F4 fg:#1E1E2E"
    format = '[ $time ]($style bold)'