Skip to content

Commit d9154a5

Browse files
author
Jonathan Dahan
committed
cleanup geometry_git
1 parent 9988587 commit d9154a5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

functions/geometry_git

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ geometry_git_conflicts() {
8080
geometry_git() {
8181
(( $+commands[git] )) || return
8282

83-
git rev-parse --absolute-git-dir 2>&1 >/dev/null || return
83+
git rev-parse 2>/dev/null || return
8484

85-
$(command git rev-parse --is-bare-repository 2>/dev/null) \
85+
$(git rev-parse --is-bare-repository) \
8686
&& ansi ${GEOMETRY_GIT_COLOR_BARE:=blue} ${GEOMETRY_GIT_SYMBOL_BARE:="⬢"} \
8787
&& return
8888

8989
local git_info && git_info=(
90-
geometry_git_symbol \
91-
geometry_git_branch \
92-
geometry_git_conflicts \
93-
geometry_git_time \
94-
geometry_git_stashes \
90+
geometry_git_symbol
91+
geometry_git_branch
92+
geometry_git_conflicts
93+
geometry_git_time
94+
geometry_git_stashes
9595
geometry_git_status
9696
)
9797

0 commit comments

Comments
 (0)