From 0b0ef9bfc4b38c3a4721d2517fca663af53d60e0 Mon Sep 17 00:00:00 2001 From: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Date: Sun, 22 May 2022 15:54:26 +0200 Subject: [PATCH] improved completion of subcommands in the subcommands directory Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> --- bash-completion/remote-forward-credentials | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-completion/remote-forward-credentials b/bash-completion/remote-forward-credentials index 1af8442..e007b68 100644 --- a/bash-completion/remote-forward-credentials +++ b/bash-completion/remote-forward-credentials @@ -15,7 +15,7 @@ _remote_forward_credentials() #read names from the subcommands file local names="$( command grep -E -v '^[[:space:]]*(#.*)?$' "${subcommands_file}" 2>/dev/null | command cut -d $'\t' -f 1 - { PATH="${subcommands_directory}" compgen -c; compgen -abk -A function; } | sort | uniq -u + PATH="${subcommands_directory}" compgen -c | grep -F -x -v "$( compgen -abk -A function )" )" COMPREPLY=( $( compgen -W "${names}" -- "${cur}" ) ) -- GitLab