This is my config for the Starship
cross-shell prompt.
Last active
August 9, 2022 18:52
-
-
Save voxpelli/0f4d65b9f426af2204ccf1a7346c31bd to your computer and use it in GitHub Desktop.
my starship config
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
format = """ | |
$username\ | |
$hostname\ | |
$shlvl\ | |
$directory\ | |
$git_branch\ | |
$git_commit\ | |
$git_state\ | |
$git_status\ | |
$aws\ | |
$gcloud\ | |
$golang\ | |
$nodejs\ | |
$rust\ | |
$env_var\ | |
$custom\ | |
$cmd_duration\ | |
$line_break\ | |
$jobs\ | |
$time\ | |
$status\ | |
$character""" | |
[status] | |
disabled = false | |
# Replace the "❯" symbol in the prompt with "➜" | |
[character] # The name of the module we are configuring is "character" | |
success_symbol = "[❯](bold purple)" # The "success_symbol" segment is being set to "➜" with the color "bold green" | |
[directory] | |
# truncate_to_repo = false | |
# truncation_symbol = "../" | |
truncation_length = 4 | |
style = "blue" | |
fish_style_pwd_dir_length = 1 | |
[git_branch] | |
format = "[$branch](grey) " | |
[git_status] | |
modified = "*" | |
format = "([$all_status$ahead_behind]($style) )" | |
[nodejs] | |
format = "[$version](bold green) " | |
[gcloud] | |
format = '(on $symbol[$project/]($style))([$account(@$domain)(\($region\))]($style) )' | |
symbol = "[GCP](bold blue) " | |
style = "bold yellow" | |
[custom.npm] | |
command = "npm --version" | |
files = ["package.json"] | |
style = "bold red" | |
symbol = "v" | |
# [custom.direnv] | |
# format = "[$symbol]($style) " | |
# symbol = "direnv" | |
# style = "bold green" | |
# when = "which direnv && direnv status | grep \"Loaded RC path\"" | |
[custom.fastly] | |
format = "[$symbol]($style) " | |
symbol = "fastly" | |
style = "italic red" | |
when = "[ -v FASTLY_API_TOKEN ]" | |
[time] | |
disabled = true | |
format = "[$time](grey) " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment