spaceship-prompt 4.16.0 → 4.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sections/docker_compose.zsh +2 -1
- package/sections/package.zsh +9 -2
- package/spaceship.zsh +1 -1
package/package.json
CHANGED
|
@@ -35,7 +35,8 @@ spaceship_docker_compose() {
|
|
|
35
35
|
[[ $SPACESHIP_DOCKER_COMPOSE_SHOW == false ]] && return
|
|
36
36
|
|
|
37
37
|
spaceship::exists docker-compose || return
|
|
38
|
-
|
|
38
|
+
local docker_compose_globs=('docker-compose.y*ml' 'compose.y*ml')
|
|
39
|
+
spaceship::upsearch -s $docker_compose_globs || return
|
|
39
40
|
|
|
40
41
|
local containers="$(docker-compose ps -a 2>/dev/null | tail -n+2)"
|
|
41
42
|
[[ -n "$containers" ]] || return
|
package/sections/package.zsh
CHANGED
|
@@ -100,9 +100,16 @@ spaceship_package::julia() {
|
|
|
100
100
|
spaceship_package::maven() {
|
|
101
101
|
spaceship::upsearch -s pom.xml || return
|
|
102
102
|
|
|
103
|
-
local maven_exe=$(spaceship::upsearch mvnw)
|
|
103
|
+
local maven_exe=$(spaceship::upsearch mvnw)
|
|
104
|
+
if [[ -z $maven_exe ]] && spaceship::exists mvn; then
|
|
105
|
+
maven_exe="mvn"
|
|
106
|
+
fi
|
|
107
|
+
[[ -z $maven_exe ]] && return
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
local version
|
|
110
|
+
version=$($maven_exe help:evaluate -q -DforceStdout -Dexpression=project.version 2>/dev/null)
|
|
111
|
+
[[ $? != 0 ]] && return
|
|
112
|
+
echo "${version}"
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
spaceship_package::gradle() {
|
package/spaceship.zsh
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
# Current version of Spaceship
|
|
10
10
|
# Useful for issue reporting
|
|
11
|
-
export SPACESHIP_VERSION='4.16.
|
|
11
|
+
export SPACESHIP_VERSION='4.16.2'
|
|
12
12
|
|
|
13
13
|
# Set SPACESHIP_ROOT if it isn't defined yet or if the directory does
|
|
14
14
|
# not exist anymore (e.g. after an update to a newer version)
|