-
-
Save x3rAx/07306fdc4e7ba2e4855ceca59ebc7f21 to your computer and use it in GitHub Desktop.
pac - pacget wrapper for ez search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download: | |
# $ dest="$HOME/.local/bin/pac" && curl -s https://gist.githubusercontent.com/x3rAx/07306fdc4e7ba2e4855ceca59ebc7f21/raw/pac >"$dest" && chmod +x "$dest" | |
# | |
# Usage: | |
# Search for package: | |
# $ pac <package-name> | |
# Use like pacget: | |
# $ pac -S <package-name> | |
# | |
if [[ ${1:0:1} != '-' ]]; then | |
pacget -Ss "$@" | |
else | |
pacget "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment