summaryrefslogtreecommitdiff
path: root/zsh/prompt.zsh
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-16 15:25:29 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-16 15:30:41 +0200
commit6c4932fcb70fb7647f71d4dffe23cc0a1238f916 (patch)
tree26d613fc69488251033ec2293fbdfaad3e4edaeb /zsh/prompt.zsh
parentbf7f20d9eafbbb428cb37c74b654a0fe67a48264 (diff)
cleanup utils; remove git tag from prompt; add git tag alias; move all zsh config to .config/zsh
Diffstat (limited to 'zsh/prompt.zsh')
-rw-r--r--zsh/prompt.zsh14
1 files changed, 3 insertions, 11 deletions
diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh
index 774f5f0..e041644 100644
--- a/zsh/prompt.zsh
+++ b/zsh/prompt.zsh
@@ -13,8 +13,8 @@ GIT_INFO=""
zstyle ':vcs_info:git*' formats "  %b %c%u%m%a"
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' check-for-changes true
-zstyle ':vcs_info:*' stagedstr ' %K{green} ✚ %k'
-zstyle ':vcs_info:*' unstagedstr ' %K{red} ● %k'
+zstyle ':vcs_info:*' stagedstr '%K{green} ✚ %k'
+zstyle ':vcs_info:*' unstagedstr '%K{red} ● %k'
PS_GIT_TAGS=""
PS_NODE=""
@@ -41,13 +41,5 @@ precmd() {
vcs_info
PS_NODE="$(get_pkg_manager)"
- git_tag=$(git describe --tags HEAD 2>/dev/null)
-
- if [[ $git_tag ]]; then
- PS_GIT_TAGS="%K{black}  $git_tag %k"
- else
- PS_GIT_TAGS=""
- fi
-
- PROMPT="%B$PS_ERR$PS_DIR$PS_GIT$PS_GIT_TAGS$PS_NODE %# %b"
+ PROMPT="%B$PS_ERR$PS_DIR$PS_GIT$PS_NODE %# %b"
}