aboutsummaryrefslogtreecommitdiffstats
path: root/shlib/prompt.sh
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2025-12-20 10:53:14 -0500
committerEugene Triguba <hello@eugenetriguba.com>2025-12-20 10:54:02 -0500
commit7b6dbb921650e2a52929f025b67be57609fda6d4 (patch)
tree895416312698cfe4ac61d4eed0f071d7743c0214 /shlib/prompt.sh
parentRemove openbsd conditional in zsh (diff)
downloaddotfiles-7b6dbb921650e2a52929f025b67be57609fda6d4.zip
Rework dotfiles to *only* contain dotfiles
Diffstat (limited to 'shlib/prompt.sh')
-rw-r--r--shlib/prompt.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/shlib/prompt.sh b/shlib/prompt.sh
deleted file mode 100644
index 6a63db0..0000000
--- a/shlib/prompt.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-# shellcheck shell=sh
-[ -n "${DOTFILES_PROMPT_LOADED}" ] && return
-readonly DOTFILES_PROMPT_LOADED=1
-
-# Prompt the user for confirmation on an action.
-#
-# Args:
-# $1: The question to prompt for. Answer choices
-# will be added onto the end.
-#
-# Returns:
-# 0 on yes. 1 on no.
-prompt_for_confirmation() {
- (
- printf "%s [y/n]: " "$1"
- read -r answer
- if [ "$answer" != "${answer#[Yy]}" ]; then
- return 0
- else
- return 1
- fi
- )
-}