This commit is contained in:
2026-03-28 12:18:32 +01:00
parent 04353161a4
commit f011ecc1bb
2 changed files with 11 additions and 12 deletions
@@ -5,10 +5,7 @@ PROMPT='%F{blue}%n@%m%f %F{cyan}%~%f > '
if (( $+commands[starship] )); then
eval "$(starship init zsh)"
autoload -Uz add-zle-hook-widget
add-zle-hook-widget zle-line-finish transient-prompt
function transient-prompt() {
function uy_transient_prompt() {
local file palette color
file=${STARSHIP_CONFIG:-"$HOME/.config/starship.toml"}
palette=$(sed -n "s/^palette\s*=\s*'\(.*\)'/\1/p" "$file")
@@ -17,6 +14,8 @@ if (( $+commands[starship] )); then
PROMPT="%F{$color}#%f " zle .reset-prompt
}
autoload -Uz add-zle-hook-widget
add-zle-hook-widget zle-line-finish uy_transient_prompt
# oh-my-posh
elif [[ -f "$HOME/.config/posh_theme.omp.json" ]] && (( $+commands[oh-my-posh] )); then