commit 871c51358c754dd883ab4fc6dfc51ef001e54fac parent 9bf498198dd7bef0d6c8e58c04e29566ea4b9618 Author: Ashymad <czilukim@o2.pl> Date: Wed, 19 Dec 2018 15:14:48 +0100 Update aur scripts for new version Diffstat:
| M | fish/.config/fish/functions/aur-resync-devel.fish | | | 3 | ++- |
| M | fish/.config/fish/functions/aur-update-devel.fish | | | 6 | ++++-- |
| M | fish/.config/fish/functions/aur.fish | | | 2 | -- |
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/fish/.config/fish/functions/aur-resync-devel.fish b/fish/.config/fish/functions/aur-resync-devel.fish @@ -1,4 +1,5 @@ function aur-resync-devel - aur sync --list | cut -f2 | grep -E -- "-$AURVCS" | xargs aur sync --no-ver --print + set packages (aur repo --list | cut -f1 | grep -E "$AURVCS") + aur sync $packages --no-ver --print end diff --git a/fish/.config/fish/functions/aur-update-devel.fish b/fish/.config/fish/functions/aur-update-devel.fish @@ -1,4 +1,6 @@ function aur-update-devel - aur vercmp-devel | cut -d: -f1 >/tmp/vcs.txt - xargs -a /tmp/vcs.txt aur sync --no-ver-shallow + set packages (aur vercmp-devel | cut -d: -f1) + if not test -z "$packages" + aur sync $packages --no-ver-shallow + end end diff --git a/fish/.config/fish/functions/aur.fish b/fish/.config/fish/functions/aur.fish @@ -2,8 +2,6 @@ function aur if test -f "$HOME/.config/fish/functions/aur-$argv[1].fish" eval "aur-$argv[1]" $argv[2..-1] - else if test -f "/usr/share/aurutils/contrib/$argv[1]" - bash -- "/usr/share/aurutils/contrib/$argv[1]" $argv[2..-1] else /usr/bin/aur $argv end