Last active
October 21, 2022 18:49
-
-
Save falkheiland/fb32d3341d9b1d2d27d201c73728ba1b to your computer and use it in GitHub Desktop.
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
# https://starship.rs/ | |
# sh -c "$(curl -fsSL https://starship.rs/install.sh)" | |
# mkdir -p ~/.config && touch ~/.config/starship.toml | |
# nano ~/.bashrc | |
# add `eval "$(starship init bash)"` add the end of the file | |
format = """ | |
${custom.tztime} \ | |
$cmd_duration\ | |
$directory\ | |
${custom.sq_br_on}\ | |
$git_branch\ | |
$git_status\ | |
${custom.sq_br_off}\ | |
$line_break\ | |
$character""" | |
add_newline = false | |
[character] | |
success_symbol = "[#](white)" | |
error_symbol = "[#](red)" | |
[custom.tztime] | |
command = 'date +"%H:%M:%S"' | |
when = "true" | |
format = '[\[$symbol($output)\]](yellow)' | |
[cmd_duration] | |
min_time = 0 | |
format = '[\[$duration\]](white)' | |
[directory] | |
truncation_length = 100 | |
truncate_to_repo = false | |
style = " white" | |
format = '[\[$path\]]($style)[$read_only]($read_only_style) ' | |
[git_branch] | |
symbol = "≡ " | |
style = "blue" | |
truncation_symbol = "" | |
format = '[$branch $symbol]($style)' | |
[git_status] | |
conflicted = "!" | |
ahead = '[↑$count ](red)' | |
behind = '[↓$count ](red)' | |
up_to_date = "≡" | |
modified = '[~$count ](red)' | |
staged = '[+$count ](red)' | |
deleted = '[-$count ](red)' | |
format = '[$conflicted$staged$modified$deleted$conflicted]($style)' | |
[custom.sq_br_on] | |
command = 'echo [' | |
when = "true" | |
format = '[$output](yellow)' | |
[custom.sq_br_off] | |
command = 'echo ]' | |
when = "true" | |
format = '[$output](yellow)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment