spaceship-prompt 3.16.1 → 3.16.4

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 CHANGED
@@ -1,3 +1,24 @@
1
+ ## [3.16.4](https://github.com/spaceship-prompt/spaceship-prompt/compare/v3.16.3...v3.16.4) (2022-02-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **readme:** Add notice about Ukraine ([93f328f](https://github.com/spaceship-prompt/spaceship-prompt/commit/93f328ffc049ac0c847d697b0792487b616f4496))
7
+
8
+ ## [3.16.3](https://github.com/spaceship-prompt/spaceship-prompt/compare/v3.16.2...v3.16.3) (2022-02-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * set proper message if no account ([#1099](https://github.com/spaceship-prompt/spaceship-prompt/issues/1099)) ([15d2279](https://github.com/spaceship-prompt/spaceship-prompt/commit/15d227994e003a9a3ddd30596f8a675acc212f29))
14
+
15
+ ## [3.16.2](https://github.com/spaceship-prompt/spaceship-prompt/compare/v3.16.1...v3.16.2) (2022-01-15)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * don't show docker section when using colima ([#1101](https://github.com/spaceship-prompt/spaceship-prompt/issues/1101)) ([9b6e88b](https://github.com/spaceship-prompt/spaceship-prompt/commit/9b6e88b0d2c1d76961c59c1f5476830a2ce44293))
21
+
1
22
  ## [3.16.1](https://github.com/spaceship-prompt/spaceship-prompt/compare/v3.16.0...v3.16.1) (2021-11-05)
2
23
 
3
24
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021-2016 [Denys Dovhan](https://denysdovhan.com)
3
+ Copyright (c) 2022-2016 [Denys Dovhan](https://denysdovhan.com)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
+ > # 🇺🇦 UKRAINE NEEDS YOUR HELP NOW!
2
+ >
3
+ > I'm the creator of this project and I'm Ukrainian.
4
+ >
5
+ > **My country, Ukraine, [is being invaded by the Russian Federation, right now](https://www.bbc.com/news/world-europe-60504334)**. I've fled Kyiv and now I'm safe with my family in the western part of Ukraine. At least for now.
6
+ > Russia is hitting target all over my country by ballistic missiles.
7
+ >
8
+ > **Please, save me and help to save my country!**
9
+ >
10
+ > Ukrainian National Bank opened [an account to Raise Funds for Ukraine’s Armed Forces](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi):
11
+ >
12
+ > ```
13
+ > SWIFT Code NBU: NBUA UA UX
14
+ > JP MORGAN CHASE BANK, New York
15
+ > SWIFT Code: CHASUS33
16
+ > Account: 400807238
17
+ > 383 Madison Avenue, New York, NY 10179, USA
18
+ > IBAN: UA843000010000000047330992708
19
+ > ```
20
+ >
21
+ > You can also donate to [charity supporting Ukrainian army](https://savelife.in.ua/en/donate/).
22
+ >
23
+ > **THANK YOU!**
24
+
1
25
  <h1 align="center">
2
26
  <a href="https://github.com/spaceship-prompt/spaceship-prompt">
3
27
  <img alt="spaceship →~ prompt" src="https://cloud.githubusercontent.com/assets/3459374/21679181/46e24706-d34b-11e6-82ee-5efb3d2ba70f.png" width="400">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spaceship-prompt",
3
- "version": "3.16.1",
3
+ "version": "3.16.4",
4
4
  "description": "A Zsh prompt for Astronauts.",
5
5
  "files": [
6
6
  "lib",
@@ -33,7 +33,7 @@ spaceship_docker_context() {
33
33
  # Docker contexts can be set using either the DOCKER_CONTEXT environment variable
34
34
  # or the `docker context use` command. `docker context ls` will show the selected
35
35
  # context in both cases. But we are not interested in the local "default" context.
36
- docker_remote_context=$(docker context ls --format '{{if .Current}}{{if and (ne .Name "default") (ne .Name "desktop-linux")}}{{.Name}}{{end}}{{end}}' 2>/dev/null)
36
+ docker_remote_context=$(docker context ls --format '{{if .Current}}{{if and (ne .Name "default") (ne .Name "desktop-linux") (ne .Name "colima")}}{{.Name}}{{end}}{{end}}' 2>/dev/null)
37
37
  [[ $? -ne 0 ]] && return
38
38
 
39
39
  docker_remote_context=$(echo $docker_remote_context | tr -d '\n')
@@ -29,6 +29,10 @@ spaceship_ibmcloud() {
29
29
  local ibmcloud_account=$(ibmcloud target | grep Account | awk '{print $2}')
30
30
  [[ -z $ibmcloud_account ]] && return
31
31
 
32
+ # If no account is targeted, the awk command will return "No", so we need to
33
+ # check for that and set it to the full message manually.
34
+ [[ "No" == $ibmcloud_account ]] && ibmcloud_account="No account targeted"
35
+
32
36
  spaceship::section \
33
37
  "$SPACESHIP_IBMCLOUD_COLOR" \
34
38
  "$SPACESHIP_IBMCLOUD_PREFIX" \
package/spaceship.zsh CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  # Current version of Spaceship
9
9
  # Useful for issue reporting
10
- export SPACESHIP_VERSION='3.16.1'
10
+ export SPACESHIP_VERSION='3.16.4'
11
11
 
12
12
  # Common-used variable for new line separator
13
13
  NEWLINE='