Skip to content

Commit

Permalink
support most options
Browse files Browse the repository at this point in the history
  • Loading branch information
thornjad committed Jul 13, 2021
1 parent a16e498 commit 87d9224
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions zpico.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zpico -- the miniscule zsh package manager
#
# Version 0.2.0
# Version 0.3.0
#
# https://gitlab.com/thornjad/zpico
# Copyright (c) 2021 Jade Michael Thornton under the terms of the ISC License
Expand Down Expand Up @@ -61,7 +61,9 @@ _zpico_add() {
}

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

_zpico_selfupdate() {
Expand All @@ -82,10 +84,13 @@ zpico() {
_zpico_add "$2" "$3" "$4" "$5"
;;
update)
_zpico_update
;;
selfupdate)
_zpico_selfupdate
;;
clean)
echo "Clean not yet stable"
;;
*)
_zpico_version
Expand Down

0 comments on commit 87d9224

Please sign in to comment.