We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 168a05a commit e1a7c76Copy full SHA for e1a7c76
zap.zsh
@@ -153,7 +153,7 @@ OPTIONS:
153
function _zap_version() {
154
local -Ar color=(BLUE "\033[0;34m" GREEN "\033[0;32m" RESET "\033[0m")
155
local _branch=$(git -C "$ZAP_DIR" branch --show-current)
156
- local _version=$(git -C "$ZAP_DIR" describe --tags `git -C "$ZAP_DIR" rev-list --tags --max-count=1`)
+ local _version=$(git -C "$ZAP_DIR" describe --abbrev=0 --tags)
157
local _commit=$(git -C "$ZAP_DIR" log -1 --pretty="%h (%cr)")
158
echo "⚡ Zap - Version\n\nVersion: ${color[GREEN]}${_branch}/${_version}${color[RESET]}\nCommit Hash: ${color[BLUE]}${_commit}${color[RESET]}"
159
}
0 commit comments