photo-stats

statistics processor for the terminal
git clone https://git.clttr.info/photo-stats.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 4d6ef4a9bb1aee2ad5357c0d58c4f41e0fbcf0fb
parent 7342d916e1466e5cb95fb749391a16ecaeb3f501
Author: René Wagner <rwa@clttr.info>
Date:   Thu, 22 Jun 2023 19:15:35 +0200

finish bash completion

Diffstat:
Mphosta-completion.sh | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/phosta-completion.sh b/phosta-completion.sh @@ -6,6 +6,7 @@ _phosta_completions() local prev=${COMP_WORDS[COMP_CWORD-1]} local suggestions="" + local suggestions=($(compgen -W "-o -s -g -T -n -W -t -p -D -c -E -e -f -n")) local prefix="" if [[ ${cur} =~ "," ]]; then prefix="${cur%,*}," @@ -15,6 +16,9 @@ _phosta_completions() suggestions=($(compgen -W "${prefix}year ${prefix}month ${prefix}week ${prefix}hour ${prefix}file ${prefix}maker ${prefix}model ${prefix}lensmaker ${prefix}lens ${prefix}aperture ${prefix}exposuretime ${prefix}iso ${prefix}focallength ${prefix}focallength35mm" "${cur}")) ;; "-s") + suggestions=($(compgen -W "\"${prefix}file \"${prefix}maker \"${prefix}model \"${prefix}lensmaker \"${prefix}lens \"${prefix}aperture \"${prefix}exposuretime \"${prefix}iso \"${prefix}focallength \"${prefix}focallength35mm" "${cur}")) + ;; + "-f") suggestions=($(compgen -W "${prefix}file ${prefix}maker ${prefix}model ${prefix}lensmaker ${prefix}lens ${prefix}aperture ${prefix}exposuretime ${prefix}iso ${prefix}focallength ${prefix}focallength35mm" "${cur}")) ;; "-g") @@ -42,9 +46,6 @@ _phosta_completions() "-D") suggestions=($(compgen -f "${cur}")) ;; - *) - suggestions=($(compgen -W "-o -s -g -T -n -W -t -p -D -c -E -e -f -n")) - ;; esac if [ "${#suggestions[@]}" == "1" ]; then