]> git.rmz.io Git - dotfiles.git/blob - bin/aur-remove
zsh: show tags in git_prompt_status
[dotfiles.git] / bin / aur-remove
1 #!/bin/sh --
2 # aur-remove - remove listed packages from all local repositories
3 # Taken from "man aur'
4
5 if [ "$#" -eq 0 ]; then
6 printf 'usage: aur remove package [package ...]\n' >&2
7 exit 1
8 fi
9
10 aur repo --list-path | while read -r repo_path; do
11 repo-remove "$repo_path" "$@"
12 paccache -c "${repo_path%/*}" -rvk0 "$@"
13 done