mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-23 04:28:00 +00:00
[Fix #170] Remove Git stash count leading spaces
This commit is contained in:
parent
0cd33ca694
commit
aa925d22b4
@ -268,7 +268,7 @@ function git-info {
|
|||||||
|
|
||||||
# Format stashed.
|
# Format stashed.
|
||||||
if [[ -f "$(git-dir)/refs/stash" ]]; then
|
if [[ -f "$(git-dir)/refs/stash" ]]; then
|
||||||
stashed="$(git stash list 2> /dev/null | wc -l)"
|
stashed="$(git stash list 2> /dev/null | wc -l | awk '{print $1}')"
|
||||||
zstyle -s ':omz:module:git' stashed 'stashed_format'
|
zstyle -s ':omz:module:git' stashed 'stashed_format'
|
||||||
zformat -f stashed_formatted "$stashed_format" "S:$stashed"
|
zformat -f stashed_formatted "$stashed_format" "S:$stashed"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user