Skip to content

Instantly share code, notes, and snippets.

@azriel91
Last active May 14, 2024 01:52
Show Gist options
  • Save azriel91/f37e0ac0ccc2c83f1cd762278d4fb73e to your computer and use it in GitHub Desktop.
Save azriel91/f37e0ac0ccc2c83f1cd762278d4fb73e to your computer and use it in GitHub Desktop.
Starship configuration
format = """\
$time\
$directory\
$memory_usage\
$env_var\
$git_branch\
$git_commit\
$git_state\
$git_status\
$cmd_duration\
$line_break\
$character\
"""
# Disabled:
# $custom\
# $docker_context\
# $aws\
# $package\
# $rust\
# $dotnet\
# $java\
# $julia\
# $nodejs\
# $python\
# $ruby\
# $nix_shell\
[aws]
style = "bold blue"
symbol = "πŸ…° "
format = "[$symbol$region]($style)"
[aws.region_aliases]
ap-southeast-2 = "au"
us-east-1 = "va"
[cmd_duration]
# $duration – The command duration (e.g. "15s")
# $style – The default style of the module (e.g. "bold yellow")
min_time = 500
format = "βŒ› [$duration]($style) "
show_milliseconds = true
[custom.nu]
command = "printf 🐚"
format = "[$symbol$output]($style) "
when = """ test "$_" == "/home/azriel/.cargo/bin/nu" """
[dotnet]
disabled = true
[directory]
format = "[$path]($style)[$read_only]($read_only_style) "
style = "bold bright-blue"
truncation_length = 7
truncate_to_repo = false
[git_branch]
symbol = "🌱 "
# style = "white"
style = "bright-green"
[git_status]
format = '([$all_status$ahead_behind]($style) )'
stashed = "" # ignore stashes
staged = "[!](bold bright-green)"
[rust]
format = "[$symbol$version]($style) "
[time]
disabled = false
format = "[$time]($style) "
time_format = "%T"
style = "bold yellow"
utc_time_offset = "+12"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment