From 4005958bf982c0354f2ddffd5bae91c9e37ffa29 Mon Sep 17 00:00:00 2001 From: Vulcalien Date: Sat, 18 Dec 2021 14:49:45 +0100 Subject: [PATCH] Remove completion for --profile and --layout The feature doesn't work well for items with spaces or quotes in the name. --- completion/bash | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/completion/bash b/completion/bash index 67506c6a..b23cea28 100644 --- a/completion/bash +++ b/completion/bash @@ -5,18 +5,7 @@ _terminator() local cur prev words cword _init_completion || return - case $prev in - --profile | -p) - COMPREPLY=($(compgen -W "$($1 --list-profiles)"\ - -- "$cur")) - return - ;; - --layout | -l) - COMPREPLY=($(compgen -W "$($1 --list-layouts)"\ - -- "$cur")) - return - ;; - esac + # TODO implement completion for --profile and --layout COMPREPLY=($(compgen -W "$($1 --help | tr ',' '\n' | command sed -n -e 's/^ *\(--\?[a-zA-Z\-]\+=\?\).*/\1/p')"\