dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit d6e83ee66c8636cad3dd1ca55677257e041d780e
parent f5771f20cb12118c3eb86effe68d6675292be622
Author: Ashymad <czilukim@o2.pl>
Date:   Wed, 11 Apr 2018 16:16:46 +0200

Improve vcsync

Diffstat:
Mfish/.config/fish/functions/aur-vcsync.fish | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/fish/.config/fish/functions/aur-vcsync.fish b/fish/.config/fish/functions/aur-vcsync.fish @@ -1,16 +1,14 @@ function aur-vcsync source ~/.config/fish/utils/pacmsg.fish set vcs_list git hg cvs svn bzr - echo -n "" > /tmp/vcs.tmp msg1 "Checking newest commit of repositories..." - for vcs in $vcs_list - set repos ~/.cache/aurutils/sync/*-$vcs - for repo in $repos - aur srcver $repo >> /tmp/vcs.tmp - end - end + aur srcver ~/.cache/aurutils/sync/*-$vcs_list > /tmp/vcs.tmp msg1 "Comparing to locally installed versions..." set updates (aur vercmp -p /tmp/vcs.tmp -d custom-aur) + if test -z "$updates" + msg3 "There is nothing to do" + exit + end for update in $updates echo Updating $update... aur sync --no-ver \