Skip to content

Commit 87d9224

Browse files
committed
support most options
1 parent a16e498 commit 87d9224

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

zpico.zsh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Zpico -- the miniscule zsh package manager
22
#
3-
# Version 0.2.0
3+
# Version 0.3.0
44
#
55
# https://gitlab.com/thornjad/zpico
66
# Copyright (c) 2021 Jade Michael Thornton under the terms of the ISC License
@@ -61,7 +61,9 @@ _zpico_add() {
6161
}
6262

6363
_zpico_update() {
64-
find ${ZP_PLUGIN_HOME} -type d -exec test -e '{}/.git' ';' -print0 | xargs -I {} -0 git -C {} pull -q
64+
echo -n "Updating... "
65+
find ${ZP_PLUGIN_HOME} -type d -exec test -e '{}/.git' ';' -print0 | xargs -0I {} git -C {} pull -q --no-rebase
66+
echo "Done"
6567
}
6668

6769
_zpico_selfupdate() {
@@ -82,10 +84,13 @@ zpico() {
8284
_zpico_add "$2" "$3" "$4" "$5"
8385
;;
8486
update)
87+
_zpico_update
8588
;;
8689
selfupdate)
90+
_zpico_selfupdate
8791
;;
8892
clean)
93+
echo "Clean not yet stable"
8994
;;
9095
*)
9196
_zpico_version

0 commit comments

Comments
 (0)