Last active
January 14, 2025 17:24
-
-
Save heydantz/b54c6f9e533e211e04d26f9ed1f8c384 to your computer and use it in GitHub Desktop.
Starship Configuration
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
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
# Inserts a blank line between shell prompts | |
add_newline = true | |
# Replace the '❯' symbol with '➜' using Dracula colors | |
[character] | |
success_symbol = '[➜](bold)' | |
error_symbol = '[➜](bold)' | |
# AWS Profile and Region | |
[aws] | |
symbol = '☁️ ' | |
format = 'on [$symbol($profile )(\($region\) )]($style)' | |
disabled = false | |
# Kubernetes Context and Namespace | |
[kubernetes] | |
symbol = '☸ ' | |
format = 'via [$symbol $context( \($namespace\))]($style) ' | |
disabled = false | |
[[kubernetes.contexts]] | |
context_pattern = "arn:aws:eks:.*:cluster/(?P<cluster>[\\w-]+)" | |
context_alias = "eks-$cluster" | |
# Command duration | |
[cmd_duration] | |
min_time = 2000 | |
format = 'took [$duration](bold)' | |
# Show time | |
[time] | |
disabled = false | |
style = 'bold' | |
format = '[$time]($style) ' | |
time_format = '%H:%M' | |
# Battery | |
[battery] | |
full_symbol = ' ' | |
charging_symbol = ' ' | |
discharging_symbol = ' ' | |
disabled = true | |
# Prompt format | |
format = """ | |
$time\ | |
$username\ | |
$hostname\ | |
$directory\ | |
$git_branch\ | |
$git_status\ | |
$nodejs\ | |
$package\ | |
$aws\ | |
$kubernetes\ | |
$fill\ | |
$cmd_duration | |
$character""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment