improved POSIX
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user