diff options
author | zlg <zlg@zlg.space> | 2018-03-18 21:48:41 -0700 |
---|---|---|
committer | zlg <zlg@zlg.space> | 2018-03-18 21:48:41 -0700 |
commit | 9ec059873772b201ff8fc3b124f6d2b942493e84 (patch) | |
tree | 45ffd289c488320ff3cfb39f87deda7321f9835c /scripts | |
parent | README.mdown: break line correctly (diff) | |
download | vgstash-9ec059873772b201ff8fc3b124f6d2b942493e84.tar.gz vgstash-9ec059873772b201ff8fc3b124f6d2b942493e84.tar.bz2 vgstash-9ec059873772b201ff8fc3b124f6d2b942493e84.tar.xz vgstash-9ec059873772b201ff8fc3b124f6d2b942493e84.zip |
Flesh out filter types and ownership status
It's time for a refactor to a module; the functionality and interface
are clashing.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/helpers.sh | 19 |
1 files changed, 4 insertions, 15 deletions
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 "$@" -} |