blob: 3b2d3355557c1ea30ca9354356fc30745fbaf3b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/usr/bin/env bash
# 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.
# Faster general searching
function vgsrc() {
case $# in
1)
vgstash list | grep -iE "$1"
;;
2)
vgstash list "$1" | grep -iE "$2"
;;
*)
echo "usage: vgsrc [game name]"
echo " or vgsrc [view name] [game name]"
echo
echo "Ex: vgsrc physical Borderlands"
;;
esac
}
# Faster adding
function vgadd() {
vgstash add "$@"
}
|