summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnoise16
1 files changed, 16 insertions, 0 deletions
diff --git a/noise b/noise
index 9d4f815f..dcef9f9e 100755
--- a/noise
+++ b/noise
@@ -39,6 +39,22 @@ noise_set() { # set a variable
esac
}
+noise_unset() { # unset a variable
+ case "$1" in
+ (-q|--quiet) echo=: ; shift ;;
+ (*) echo=echo ;;
+ esac
+ case $# in
+ (1) ##
+ unset "noise_$1"
+ sed -ni "/^$1=/!p" $env
+ ;;
+ (*)
+ fail "broken commandline: $@"
+ ;;
+ esac
+}
+
noise_quit() { # exit
echo "Good bye!"
exit