From 9ec059873772b201ff8fc3b124f6d2b942493e84 Mon Sep 17 00:00:00 2001 From: zlg Date: Sun, 18 Mar 2018 21:48:41 -0700 Subject: Flesh out filter types and ownership status It's time for a refactor to a module; the functionality and interface are clashing. --- scripts/helpers.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'scripts') diff --git a/scripts/helpers.sh b/scripts/helpers.sh index 174305f..3b2d335 100644 --- a/scripts/helpers.sh +++ b/scripts/helpers.sh @@ -3,14 +3,6 @@ # This is a set of helper bash functions that are too small for their own file, # but useful enough to be worth `source`ing in your bashrc. -# Reports how many physical games you own -function vgphys() { - # Note: This assumes the system has an asterisk, "VC", or "Steam" in its name - # Change this to reflect how you differentiate physical and digital games. - # TODO: Add 'digital' ownership option to obsolete the regex - vgstash list owned | cut -d '|' -f 1-3,5 | grep -viE '\*| VC|Steam' | wc -l -} - # Faster general searching function vgsrc() { case $# in @@ -21,7 +13,10 @@ function vgsrc() { vgstash list "$1" | grep -iE "$2" ;; *) - echo "Dumbass, search for something." + echo "usage: vgsrc [game name]" + echo " or vgsrc [view name] [game name]" + echo + echo "Ex: vgsrc physical Borderlands" ;; esac } @@ -30,9 +25,3 @@ function vgsrc() { function vgadd() { vgstash add "$@" } - -# Quick way to update a game -# TODO: Put this in a better place -function vgup() { - "$HOME"/projects/vgstash/scripts/updater.sh "$@" -} -- cgit v1.2.3-54-g00ecf