Last active
August 20, 2021 19:47
-
-
Save flesch/71a552ca72b282e864ecb959b8d15b97 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.config/starship.toml | |
format = """ | |
[♥](bold red)\ | |
${custom.git_user}\ | |
${custom.ip}\ | |
$ruby${custom.bundler}\ | |
$golang\ | |
$nodejs${custom.npm}${custom.yarn}\ | |
$terraform\ | |
$directory$git_branch$git_status\ | |
$character | |
""" | |
scan_timeout = 10 | |
add_newline = false | |
[line_break] | |
disabled = true | |
[package] | |
disabled = true | |
[directory] | |
truncate_to_repo = false | |
truncation_length = 3 | |
truncation_symbol = "←/" | |
style = "bold cyan" | |
format = " • [$path]($style)" | |
[character] | |
success_symbol = " • [\\$](bright-white)" | |
error_symbol = " • [\\$](bold red)" | |
[custom.git_user] | |
command = "git config user.email | cut -d \"@\" -f2 | sed 's/.com//g'" | |
when = "true" | |
style = "dimmed cyan" | |
format = " • [$output]($style)" | |
[custom.ip] | |
command = "ipconfig getifaddr en0" | |
when = "true" | |
style = "bold blue" | |
format = " • [$output]($style)" | |
[ruby] | |
style = "red" | |
format = " • [$version]($style)" | |
[custom.bundler] | |
command = "bundler --version 2>/dev/null | cut -f3 -d ' '" | |
files = ["Gemfile", ".ruby-version", "*.rb"] | |
style = "red" | |
format = "[×](white)[v$output]($style)" | |
[golang] | |
style = "blue" | |
format = " • [$version]($style)" | |
[nodejs] | |
style = "blue" | |
format = " • [$version]($style)" | |
[custom.npm] | |
command = "npm --version 2>/dev/null" | |
files = ["package-lock.json"] | |
style = "blue" | |
format = "[×](white)[v$output]($style)" | |
[custom.yarn] | |
command = "yarn --version 2>/dev/null" | |
files = ["yarn.lock"] | |
style = "blue" | |
format = "[×](white)[v$output]($style)" | |
[terraform] | |
style = "blue" | |
format = " • [$version]($style)" | |
[git_branch] | |
style = "dimmed cyan" | |
format = " • [$branch]($style)" | |
[git_status] | |
modified = " ×" | |
style = "dimmed cyan" | |
format = "[$modified]($style)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment