1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-25 21:40:08 +00:00

Merge commit 'bc85e46f8b8a548379144732a3218bfe686f2f63'

This commit is contained in:
romkatv 2020-05-10 17:44:24 +02:00
commit 75bbc4439f
2 changed files with 6 additions and 3 deletions

View file

@ -473,6 +473,9 @@ want to build in docker (`-d docker`) or to allow automatic downloading of libgi
The following code should work. If it doesn't, please open an issue. The following code should work. If it doesn't, please open an issue.
**IMPORTANT:** *Change version to what you want to package. This example doesn't get updated when
new versions are released.*
```zsh ```zsh
curl -fsSLO https://github.com/romkatv/gitstatus/archive/v1.0.0.tar.gz curl -fsSLO https://github.com/romkatv/gitstatus/archive/v1.0.0.tar.gz
tar -xzf v1.0.0.tar.gz tar -xzf v1.0.0.tar.gz
@ -485,7 +488,7 @@ cd gitstatus-1.0.0
) )
./build ./build
rm deps/libgit2-*.tar.gz rm deps/libgit2-*.tar.gz
for file in gitstatus.plugin.zsh gitstatus.prompt.zsh install; do for file in *.zsh install; do
zsh -fc "zcompile -R -- $file.zwc $file" zsh -fc "zcompile -R -- $file.zwc $file"
done done
``` ```

View file

@ -209,13 +209,13 @@ END
if command -v curl >/dev/null 2>&1; then if command -v curl >/dev/null 2>&1; then
if ! err="$(command curl -fsSLo "$archive" -- "$url" 2>&1)"; then if ! err="$(command curl -fsSLo "$archive" -- "$url" 2>&1)"; then
>&2 echo "[gitstatus] error: failed to download gitstatusd: $url" >&2 echo "[gitstatus] error: failed to download gitstatusd: $url"
>&2 printf "%s" "$err" >&2 printf "%s\n" "$err"
return 1 return 1
fi fi
elif command -v wget >/dev/null 2>&1; then elif command -v wget >/dev/null 2>&1; then
if ! err="$(command wget -O "$archive" -- "$url" 2>&1)"; then if ! err="$(command wget -O "$archive" -- "$url" 2>&1)"; then
>&2 echo "[gitstatus] error: failed to download gitstatusd: $url" >&2 echo "[gitstatus] error: failed to download gitstatusd: $url"
>&2 printf "%s" "$err" >&2 printf "%s\n" "$err"
return 1 return 1
fi fi
else else