dotfiles

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

commit a3fac8bf2deb0b6544827fb7327f037e30f73c77
parent f5854f21eadfeb0be0baec83d38acde5f0805420
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Fri, 10 Apr 2020 18:19:01 +0200

fish: align to new aurutils version

Diffstat:
Mfish/.config/fish/functions/aur-cleanup.fish | 6+++++-
Mfish/.config/fish/functions/aur-resync-devel.fish | 4++--
Mfish/.config/fish/functions/aur-update-devel.fish | 2+-
3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/fish/.config/fish/functions/aur-cleanup.fish b/fish/.config/fish/functions/aur-cleanup.fish @@ -19,7 +19,11 @@ function aur-cleanup rm -rf -- $dir else set reponame (pacman -Ss '^'(string escape --style=regex $pkgname)'$' | head -1 | sed 's@/.*$@@g') - if not string match -q 'custom*' $reponame + if string match -q 'custom*' $reponame + cd $dir + git clean -xdf + cd .. + else echo "Removing $dir..." rm -rf -- $dir end diff --git a/fish/.config/fish/functions/aur-resync-devel.fish b/fish/.config/fish/functions/aur-resync-devel.fish @@ -1,5 +1,5 @@ function aur-resync-devel - set packages (aur repo --list | cut -f1 | grep -E "$AURVCS") - aur sync $packages --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,6 +1,6 @@ function aur-update-devel set packages (aur vercmp-devel | cut -d: -f1) if not test -z "$packages" - aur sync $packages --no-ver-shallow + aur sync $packages --no-ver-argv end end