update yazi's themes

This commit is contained in:
2026-03-29 11:24:50 +02:00
parent c5b4616cc4
commit 201d24347b
68 changed files with 1436 additions and 681 deletions
+1 -6
View File
@@ -13,7 +13,7 @@ targetTypes=("os" "session" "status")
if ! python3 - "$file" "$colorHex" "${targetTypes[@]}"; then {
log_error "Failed to edit ${file}"
exit 1
}; fi <<EOF
}; fi << EOF
import json
import sys
@@ -55,10 +55,5 @@ if data is not None:
json.dump(data, f, indent=4)
EOF
if [ $? -ne 0 ]; then
log_error "Failed to edit ${file}"
exit 1
fi
log_success "oh-my-posh"
@@ -8,12 +8,10 @@
file="$path"/../starship.toml
sed -i \
if ! sed -i \
-e "s/^palette\s*=.*/palette = '${palette}'/" \
-e "/^\[palettes\.${palette}\]/,/^\[/{s/^accent\s*=.*/accent = \"#${colorHex}\"/}" \
"$file"
if [ $? -ne 0 ]; then
"$file"; then
log_error "Failed to edit ${file}"
exit 1
fi
@@ -10,5 +10,9 @@ end
if test -f $HOME/.config/posh_theme.omp.json; and type -q oh-my-posh
eval (oh-my-posh init fish --config $HOME/.config/posh_theme.omp.json)
else if type -q starship
function starship_transient_prompt_func
starship module character
end
eval (starship init fish)
enable_transience
end
+3 -3
View File
@@ -37,7 +37,7 @@
},
{
"foreground": "#a6e3a1",
"powerline_symbol": "",
"powerline_symbol": "\u276f",
"options": {
"branch_icon": "\ue725 ",
"fetch_status": true,
@@ -54,7 +54,7 @@
},
{
"foreground": "#f9e2af",
"powerline_symbol": "",
"powerline_symbol": "\u276f",
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"style": "powerline",
"type": "python"
@@ -97,4 +97,4 @@
"template": "# "
},
"version": 3
}
}