From 7b6dbb921650e2a52929f025b67be57609fda6d4 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 20 Dec 2025 10:53:14 -0500 Subject: Rework dotfiles to *only* contain dotfiles --- shlib/prompt.sh | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 shlib/prompt.sh (limited to 'shlib/prompt.sh') 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 - ) -} -- cgit v1.2.3