summaryrefslogtreecommitdiff
path: root/01_Internal.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Internal.zsh')
-rw-r--r--01_Internal.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/01_Internal.zsh b/01_Internal.zsh
index 8624ede..df9731e 100644
--- a/01_Internal.zsh
+++ b/01_Internal.zsh
@@ -631,3 +631,8 @@ _process_tree()
done
}
+# Asks confirmation before executing parameters
+confirm() {
+ read -q "?Are you sure? " && $@
+}
+