From 50a570ea6aeb3865c53f6e2192cc22f3ff5b6bb9 Mon Sep 17 00:00:00 2001 From: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:54:51 +0800 Subject: [PATCH] Remove unexpected token --- templates/bash.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/bash.txt b/templates/bash.txt index aeec524..6cd68f3 100644 --- a/templates/bash.txt +++ b/templates/bash.txt @@ -126,7 +126,7 @@ if [[ ${BASH_VERSINFO[0]:-0} -eq 4 && ${BASH_VERSINFO[1]:-0} -ge 4 || ${BASH_VER # If there is only one argument, use `cd` completions. if [[ {{ "${#COMP_WORDS[@]}" }} -eq 2 ]]; then - \builtin mapfile -t COMPREPLY < <( + \builtin mapfile -t COMPREPLY < ( \builtin compgen -A directory -- "${COMP_WORDS[-1]}" || \builtin true ) # If there is a space after the last word, use interactive selection.