-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support powerline style in starship
See https://dev.to/therubberduckiee/how-to-configure-starship-to-look-exactly-like-p10k-zsh-warp-h9h.
- Loading branch information
1 parent
229bb06
commit 1467b3c
Showing
3 changed files
with
60 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
format = """\ | ||
[](bg:#030B16 fg:#7DF9AA)\ | ||
[ ](bg:#7DF9AA fg:#090c0c)\ | ||
[](fg:#7DF9AA bg:#1C3A5E)\ | ||
$time\ | ||
[](fg:#1C3A5E bg:#3B76F0)\ | ||
$directory\ | ||
[](fg:#3B76F0 bg:#FCF392)\ | ||
$git_branch\ | ||
$git_status\ | ||
$git_metrics\ | ||
[](fg:#FCF392 bg:#030B16)\ | ||
$character\ | ||
""" | ||
|
||
[directory] | ||
format = "[ ﱮ $path ]($style)" | ||
style = "fg:#E4E4E4 bg:#3B76F0" | ||
|
||
[git_branch] | ||
format = '[ $symbol$branch(:$remote_branch) ]($style)' | ||
symbol = " " | ||
style = "fg:#1C3A5E bg:#FCF392" | ||
|
||
[git_status] | ||
format = '[$all_status]($style)' | ||
style = "fg:#1C3A5E bg:#FCF392" | ||
|
||
[git_metrics] | ||
format = "([+$added]($added_style))[]($added_style)" | ||
added_style = "fg:#1C3A5E bg:#FCF392" | ||
deleted_style = "fg:bright-red bg:235" | ||
disabled = false | ||
|
||
[hg_branch] | ||
format = "[ $symbol$branch ]($style)" | ||
symbol = " " | ||
|
||
[cmd_duration] | ||
format = "[ $duration ]($style)" | ||
style = "fg:bright-white bg:18" | ||
|
||
[character] | ||
success_symbol = '[ ➜](bold green) ' | ||
error_symbol = '[ ✗](#E84D44) ' | ||
|
||
[time] | ||
disabled = false | ||
time_format = "%R" # Hour:Minute Format | ||
style = "bg:#1d2230" | ||
format = '[[ $time ](bg:#1C3A5E fg:#8DFBD2)]($style)' |