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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spaceship-prompt",
3
- "version": "4.16.0",
3
+ "version": "4.16.2",
4
4
  "description": "A Zsh prompt for Astronauts.",
5
5
  "files": [
6
6
  "lib",
@@ -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
- spaceship::upsearch -s 'docker-compose.y*ml' || return
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
@@ -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) || (spaceship::exists mvn && maven_exe="mvn") || return
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
- $maven_exe help:evaluate -q -DforceStdout -D"expression=project.version" 2>/dev/null
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.0'
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)