File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,12 @@ geometry_git_stashes() {
6
6
}
7
7
8
8
geometry_git_time () {
9
- local last_commit
10
- local now
11
- local seconds_since_last_commit
12
- last_commit=$( git log -1 --pretty=format:' %at' 2> /dev/null)
9
+ local last_commit; last_commit=$( git log -1 --pretty=format:' %at' 2> /dev/null)
13
10
14
- [[ -z " $last_commit " ]] && ansi ${GEOMETRY_COLOR_NO_TIME:- default} ${GEOMETRY_GIT_NO_COMMITS_MESSAGE:- no-commits } && return
11
+ [[ -z " $last_commit " ]] && ansi ${GEOMETRY_COLOR_NO_TIME:- default} ${GEOMETRY_GIT_NO_COMMITS_MESSAGE:- welcome } && return
15
12
16
- now=$( date +%s)
17
- seconds_since_last_commit=$(( now - last_commit))
13
+ local now ; now=$( date +%s)
14
+ local seconds_since_last_commit ; seconds_since_last_commit=$(( now - last_commit))
18
15
geometry::time $seconds_since_last_commit ${GEOMETRY_GIT_TIME_DETAILED:- false}
19
16
}
20
17
You can’t perform that action at this time.
0 commit comments