fix zsh config paths

This commit is contained in:
2025-09-15 08:19:46 +03:00
parent d397192471
commit 652d71e50e
5 changed files with 162 additions and 111 deletions

View File

@@ -0,0 +1,15 @@
# -----------------------------
# Git prompt function
# -----------------------------
git_prompt_info() {
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
local branch=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
echo " %F{green}($branch)%f"
fi
}
# -----------------------------
# Set prompt
# -----------------------------
PROMPT='%n@%m%f %F{blue}%~%f$(git_prompt_info) $ '