Advertisement
Guest User

starship.toml

a guest
Jun 12th, 2024
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 3.91 KB | Source Code | 0 0
  1. format = """
  2. [](#3B4252)\
  3. $username\
  4. (#3B4252)$hostname\
  5. [](bg:#434C5E fg:#3B4252)\
  6. $directory\
  7. [](fg:#434C5E bg:#4C566A)\
  8. $git_branch\
  9. $git_commit\
  10. $git_status\
  11. [](fg:#4C566A bg:#86BBD8)\
  12. $python\
  13. $c\
  14. $elixir\
  15. $elm\
  16. $golang\
  17. $haskell\
  18. $java\
  19. $julia\
  20. $nodejs\
  21. $nim\
  22. $rust\
  23. $scala\
  24. [](fg:#86BBD8 bg:#06969A)\
  25. $docker_context\
  26. [](fg:#06969A)\
  27. $fill[](fg:#33658A)\
  28. $character$cmd_duration\
  29. [](bg:#33658A fg:#3B4252)$time\
  30. ${custom.foo}\
  31. [](fg:#3B4252)
  32. \\$ """
  33.  
  34. # Timeout for commands executed by starship (in milliseconds).
  35. command_timeout = 1200
  36.  
  37. # Disable the blank line at the start of the prompt
  38. add_newline = false
  39.  
  40. [fill]
  41. symbol = ' '
  42. disabled = false
  43.  
  44. # You can also replace your username with a neat symbol like  to save some space
  45. [username]
  46. show_always = true
  47. style_user = "bg:#3B4252"
  48. style_root = "bg:#3B4252"
  49. format = '[$user]($style)'
  50.  
  51. [cmd_duration]
  52. min_time = 5
  53. show_milliseconds = true
  54. format = '[$duration ](bg:#33658A)'
  55. disabled = false
  56.  
  57. [hostname]
  58. ssh_only = true
  59. ssh_symbol = '🌐'
  60. format = "[@$hostname]($style)"
  61. style = "bg:#3B4252"
  62. trim_at = ".companyname.com"
  63. disabled = false
  64.  
  65. [directory]
  66. style = "bg:#434C5E"
  67. format = "[ $path ]($style)"
  68. truncation_length = 1
  69. truncation_symbol = "…/"
  70.  
  71. # Here is how you can shorten some long paths by text replacement
  72. # similar to mapped_locations in Oh My Posh:
  73. [directory.substitutions]
  74. "Documents" = " "
  75. "Downloads" = " "
  76. "Music" = " "
  77. "Pictures" = " "
  78. # Keep in mind that the order matters. For example:
  79. # "Important Documents" = "  "
  80. # will not be replaced, because "Documents" was already substituted before.
  81. # So either put "Important Documents" before "Documents" or use the substituted version:
  82. # "Important  " = "  "
  83.  
  84. [docker_context]
  85. symbol = " "
  86. style = "bg:#06969A"
  87. format = '[ $symbol $context ]($style) $path'
  88.  
  89. [elixir]
  90. symbol = " "
  91. style = "bg:#86BBD8"
  92. format = '[ $symbol ($version) ]($style)'
  93.  
  94. [elm]
  95. symbol = " "
  96. style = "bg:#86BBD8"
  97. format = '[ $symbol ($version) ]($style)'
  98.  
  99. [git_branch]
  100. symbol = ""
  101. style = "bg:#4C566A fg:yellow"
  102. format = '[ $symbol $branch ]($style)'
  103.  
  104. [git_status]
  105. style = "bg:#4C566A fg:#86BBD8"
  106. renamed = '» '
  107. modified = '!${count}'
  108. staged = ' +${count}'
  109. untracked = ' ?${count}'
  110. format = '[$all_status$ahead_behind ]($style)'
  111.  
  112. [git_commit]
  113. format = '[\($hash$tag\) ]($style)'
  114. style = "bg:#4C566A fg:cyan"
  115. only_detached = true
  116. tag_disabled = false
  117. disabled = false
  118.  
  119. [golang]
  120. symbol = " "
  121. style = "bg:#86BBD8"
  122. format = '[ $symbol ($version) ]($style)'
  123.  
  124. [java]
  125. symbol = " "
  126. style = "bg:#86BBD8"
  127. format = '[ $symbol ($version) ]($style)'
  128.  
  129. [julia]
  130. symbol = " "
  131. style = "bg:#86BBD8"
  132. format = '[ $symbol ($version) ]($style)'
  133.  
  134. [nodejs]
  135. symbol = ""
  136. style = "bg:#86BBD8"
  137. format = '[ $symbol ($version) ]($style)'
  138.  
  139. [nim]
  140. symbol = " "
  141. style = "bg:#86BBD8"
  142. format = '[ $symbol ($version) ]($style)'
  143.  
  144. [rust]
  145. symbol = ""
  146. style = "bg:#86BBD8"
  147. format = '[ $symbol ($version) ]($style)'
  148.  
  149. [python]
  150. symbol = "👾 "
  151. style = "bg:#86BBD8"
  152. format = '[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
  153.  
  154. [scala]
  155. symbol = " "
  156. style = "bg:#86BBD8"
  157. format = '[ $symbol ($version) ]($style)'
  158.  
  159. [time]
  160. disabled = true
  161. time_format = "%R"            # Hour:Minute Format
  162. style = "bg:#3B4252"
  163. format = '[$time  ]($style)'
  164.  
  165. [battery]
  166. disabled = false
  167. discharging_symbol = ''
  168. unknown_symbol = ''
  169. format = '[$percentage]($style)'
  170.  
  171. [[battery.display]]
  172. threshold = 78
  173. style = "bg:#3B4252"
  174.  
  175. [character]
  176. format = '$symbol'
  177. success_symbol = '[󰄬 ](bold #33DA7A bg:#33658A)'
  178. error_symbol = '[✗ ](bold #F66151 bg:#33658A)'
  179.  
  180. [custom.foo]
  181. disabled = false
  182. format = '[( $output)]($style)'
  183. style = "bg:#3B4252"
  184. command = "battery-time"        # shows output of command
  185. # when = """ [[ $OSTYPE == "linux-gnu" ]] && echo 1 """
  186. when = true
  187. os = "linux"
Tags: starship
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement