spaceship-prompt 4.22.4 → 4.22.5
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/package.zsh +8 -2
- package/spaceship.zsh +1 -1
package/package.json
CHANGED
package/sections/package.zsh
CHANGED
|
@@ -117,9 +117,15 @@ spaceship_package::maven() {
|
|
|
117
117
|
spaceship_package::gradle() {
|
|
118
118
|
spaceship::upsearch -s settings.gradle settings.gradle.kts || return
|
|
119
119
|
|
|
120
|
-
local gradle_exe=$(spaceship::upsearch gradlew)
|
|
120
|
+
local gradle_exe=$(spaceship::upsearch gradlew)
|
|
121
|
+
if [[ -z $gradle_exe ]]; then
|
|
122
|
+
spaceship::exists gradle || return
|
|
123
|
+
gradle_exe="gradle"
|
|
124
|
+
fi
|
|
121
125
|
|
|
122
|
-
$gradle_exe properties --no-daemon --console=plain -q 2>/dev/null |
|
|
126
|
+
local version=$($gradle_exe properties --no-daemon --console=plain -q 2>/dev/null | awk '/^version:/ {print $2}')
|
|
127
|
+
[[ "$version" == "unspecified" ]] && return
|
|
128
|
+
echo "${version}"
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
spaceship_package::python() {
|
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.22.
|
|
11
|
+
export SPACESHIP_VERSION='4.22.5'
|
|
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)
|