spaceship-prompt 4.2.5 → 4.3.0
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/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/sections/package.zsh +9 -9
- package/spaceship.zsh +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [4.3.0](https://github.com/spaceship-prompt/spaceship-prompt/compare/v4.2.6...v4.3.0) (2022-09-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* fix package section file path ([71f527b](https://github.com/spaceship-prompt/spaceship-prompt/commit/71f527b68c5464f1283dd878d6481358d67c9741))
|
|
7
|
+
|
|
8
|
+
## [4.2.6](https://github.com/spaceship-prompt/spaceship-prompt/compare/v4.2.5...v4.2.6) (2022-09-08)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **documentation:** use home variable instead of tilde ([#1189](https://github.com/spaceship-prompt/spaceship-prompt/issues/1189)) ([01e153e](https://github.com/spaceship-prompt/spaceship-prompt/commit/01e153efa56bc7c599fa1711d0291397411a002a))
|
|
14
|
+
|
|
1
15
|
## [4.2.5](https://github.com/spaceship-prompt/spaceship-prompt/compare/v4.2.4...v4.2.5) (2022-09-05)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -169,7 +169,7 @@ zmodule spaceship-prompt/spaceship-prompt --name spaceship --no-submodules
|
|
|
169
169
|
Then install Spaceship:
|
|
170
170
|
|
|
171
171
|
```zsh
|
|
172
|
-
|
|
172
|
+
zimfw install
|
|
173
173
|
```
|
|
174
174
|
</details>
|
|
175
175
|
|
|
@@ -263,7 +263,7 @@ git clone --depth=1 https://github.com/spaceship-prompt/spaceship-prompt.git "$H
|
|
|
263
263
|
For initializing prompt system add this to your `.zshrc`:
|
|
264
264
|
|
|
265
265
|
```zsh title=".zshrc"
|
|
266
|
-
source "
|
|
266
|
+
source "$HOME/.zsh/spaceship/spaceship.zsh"
|
|
267
267
|
```
|
|
268
268
|
</details>
|
|
269
269
|
|
package/package.json
CHANGED
package/sections/package.zsh
CHANGED
|
@@ -31,10 +31,10 @@ fi
|
|
|
31
31
|
|
|
32
32
|
spaceship_package::npm() {
|
|
33
33
|
spaceship::exists npm || return
|
|
34
|
-
spaceship::upsearch
|
|
34
|
+
local package_json=$(spaceship::upsearch package.json) || return
|
|
35
35
|
|
|
36
|
-
local package_version="$(spaceship::datafile --json
|
|
37
|
-
local is_private_package="$(spaceship::datafile --json
|
|
36
|
+
local package_version="$(spaceship::datafile --json $package_json version)"
|
|
37
|
+
local is_private_package="$(spaceship::datafile --json $package_json private)"
|
|
38
38
|
|
|
39
39
|
if [[ "$SPACESHIP_PACKAGE_SHOW_PRIVATE" == false && "$is_private_package" == true ]]; then
|
|
40
40
|
return 0
|
|
@@ -52,9 +52,9 @@ spaceship_package::lerna() {
|
|
|
52
52
|
# Note: lerna does not have to be installed in the global context
|
|
53
53
|
# so checking for lerna binary does not make sense
|
|
54
54
|
spaceship::exists npm || return
|
|
55
|
-
spaceship::upsearch
|
|
55
|
+
local lerna_json=$(spaceship::upsearch lerna.json) || return
|
|
56
56
|
|
|
57
|
-
local package_version="$(spaceship::datafile --json
|
|
57
|
+
local package_version="$(spaceship::datafile --json $lerna_json version)"
|
|
58
58
|
|
|
59
59
|
if [[ "$package_version" == "independent" ]]; then
|
|
60
60
|
package_version="($package_version)"
|
|
@@ -77,16 +77,16 @@ spaceship_package::cargo() {
|
|
|
77
77
|
|
|
78
78
|
spaceship_package::composer() {
|
|
79
79
|
spaceship::exists composer || return
|
|
80
|
-
spaceship::upsearch
|
|
80
|
+
local composer_json=$(spaceship::upsearch composer.json) || return
|
|
81
81
|
|
|
82
|
-
spaceship::datafile --json
|
|
82
|
+
spaceship::datafile --json $composer_json "version"
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
spaceship_package::julia() {
|
|
86
86
|
spaceship::exists julia || return
|
|
87
|
-
spaceship::upsearch
|
|
87
|
+
local project_toml=$(spaceship::upsearch Project.toml) || return
|
|
88
88
|
|
|
89
|
-
spaceship::datafile --toml
|
|
89
|
+
spaceship::datafile --toml $project_toml "version"
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
# ------------------------------------------------------------------------------
|