summaryrefslogtreecommitdiff
path: root/.local/bin/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/scripts')
-rwxr-xr-x.local/bin/scripts/shellprompt3
1 files changed, 3 insertions, 0 deletions
diff --git a/.local/bin/scripts/shellprompt b/.local/bin/scripts/shellprompt
new file mode 100755
index 0000000..80b045f
--- /dev/null
+++ b/.local/bin/scripts/shellprompt
@@ -0,0 +1,3 @@
+#!/bin/sh
+read -p "$1 [yN] " ans
+([[ "$ans" == "Y" || "$ans" == "y" ]] && exit 0) || exit 1