#!/usr/bin/env bash case $1 in install | i | add) sudo xbps-install ${@:2} ;; remove | r | del | delete) sudo xbps-remove ${@:2} ;; query | q | search | s) sudo xbps-query ${@:2} ;; upgrade | u) sudo xbps-install -Su ;; locate | l | find | f) xlocate ${@:2} ;; *) echo "Usage info:" echo echo "xb i - Calls 'sudo xbps-install' with the following arguments" echo "xb q - Calls 'sudo xbps-query' with the following arguments" echo "xb r - Calls 'sudo xbps-remove' with the following arguments" echo "xb u - Upgrades the system packages with 'sudo xbps-install -Su'" echo "xb l - Pass following arguments to xlocate" echo "xb h - Displays help" ;; esac