From 5262f12e2cb084e77759154f9b63ad032a685476 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Sun, 27 Dec 2020 08:54:42 -0500 Subject: [claws-mail]: upgrade to v3.17.8 --- nonprism/claws-mail/bash_completion | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nonprism/claws-mail/bash_completion (limited to 'nonprism/claws-mail/bash_completion') diff --git a/nonprism/claws-mail/bash_completion b/nonprism/claws-mail/bash_completion new file mode 100644 index 000000000..dcbcc8920 --- /dev/null +++ b/nonprism/claws-mail/bash_completion @@ -0,0 +1,30 @@ +# claws-mail(1) completion +_claws-mail() +{ + local cur prev words cword + _init_completion || return + + case $prev in + --help|-h|--version|-v|--version-full|-V) + return + ;; + --alternate-config-dir) + COMPREPLY=( $( find . -maxdepth 2 -name clawsrc | sed 's,/clawsrc,,' ) ) + return + ;; + --select|--status|--status-full) + _filedir -d + return + ;; + --compose-from-file|--attach) + _filedir + return + ;; + esac + + if [[ $cur == -* ]]; then + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + return + fi +} && +complete -F _claws-mail claws-mail -- cgit v1.2.3