aboutsummaryrefslogtreecommitdiff
path: root/scripts/helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/helpers.sh')
-rw-r--r--scripts/helpers.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/helpers.sh b/scripts/helpers.sh
index 36320a1..f46e3f4 100644
--- a/scripts/helpers.sh
+++ b/scripts/helpers.sh
@@ -1,8 +1,13 @@
-#!/bin/bash
+#!/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.
+# Set options for improved robustness
+set -o errexit
+set -o pipefail
+set -o nounset
+
# Reports how many physical games you own
function vgphys() {
# Note: This assumes the system has an asterisk, "VC", or "Steam" in its name