dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 71fb78e8df0086e23032f080ccd26ba2fc419c34
parent 5f246e3065b703edae010990a21615fd33c2e59e
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 11 Apr 2022 16:46:56 +0200

vim: ultisnips shell single-letter confirmation

Diffstat:
Mvim/ultisnips/sh.snippets | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets @@ -92,7 +92,8 @@ endsnippet snippet confirm "Ask for confirmation" b printf "${1:prompt}" -read -r conf; case "$conf" in +stty raw && conf="$(dd bs=1 count=1 2>/dev/null)" && stty -raw +case "$conf" in Y|y) ${2:# code if yes} ;;