From 9157737cf17f0e2de3c9496aeff1757c8b1342d9 Mon Sep 17 00:00:00 2001 From: taradiddles Date: Sun, 15 Apr 2018 18:50:05 +0300 Subject: [PATCH] minor fixes --- code/productivity/qvm-cmds-bash-completion.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/productivity/qvm-cmds-bash-completion.bash b/code/productivity/qvm-cmds-bash-completion.bash index 5d1dbef..2834fd9 100644 --- a/code/productivity/qvm-cmds-bash-completion.bash +++ b/code/productivity/qvm-cmds-bash-completion.bash @@ -4,15 +4,15 @@ # idea from https://www.mail-archive.com/qubes-users@googlegroups.com/msg20088.html -# taraddidles - apr 2018 +# @taradiddles - apr 2018 - GPL # COMPLETION FUNCTIONS # ==================== -# Output the relative position of COMP_CWORD when words beginning with '-' are ignored -# Note: this logic is flawed when using option arguments (eg. -s blah). +# Output the relative position of COMP_CWORD with option words ignored +# Note: This logic is flawed when using option arguments (eg. -s blah). # Unfortunately there is now way to solve this except parsing every # known option for a given qvm-* command _get-cword() { @@ -25,8 +25,8 @@ _get-cword() { echo ${index} } -# Output the first element in COMP_WORDS that doesn't begin with '-' -# Note: this logic is flawed when using option arguments (eg. -s blah). +# Output the relative position of COMP_CWORD with option words ignored +# Note: This logic is flawed when using option arguments (eg. -s blah). # Unfortunately there is now way to solve this except parsing every # known option for a given qvm-* command _get-first-word() {