improved POSIX

This commit is contained in:
2026-03-17 14:00:07 +01:00
parent ea16fb03d5
commit ce9f16e293
6 changed files with 22 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
# @argument $2: Content to show in preview window
# @return: 0 if the user answered "yes" and 1 otherwise.
ynprompt() {
return $(printf '0 \033[32myes\033[0m\n1 \033[31mno\033[0m\n' |
return "$(printf '0 \033[32myes\033[0m\n1 \033[31mno\033[0m\n' |
$FZF \
--sync \
--bind='start:pos(2)' \
@@ -19,7 +19,7 @@ ynprompt() {
--with-nth=2.. \
--accept-nth=1 \
--header-border='line' \
--color='border:yellow,header:yellow')
--color='border:yellow,header:yellow')"
}
# This prompts the user for a series of options.