Skip to content
Snippets Groups Projects
Commit 0b0ef9bf authored by Christoph Anton Mitterer's avatar Christoph Anton Mitterer
Browse files

improved completion of subcommands in the subcommands directory

parent 1d596cb6
No related branches found
No related tags found
No related merge requests found
......@@ -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}" ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment