summaryrefslogtreecommitdiff
path: root/nonprism/claws-mail/bash_completion
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-12-27 08:54:42 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2020-12-28 08:40:21 -0500
commit5262f12e2cb084e77759154f9b63ad032a685476 (patch)
treec467c082933a6b22361e149e15777dfc4b217576 /nonprism/claws-mail/bash_completion
parent89f4fa6b30fe1fbf619999158ebce83437607389 (diff)
downloadabslibre-5262f12e2cb084e77759154f9b63ad032a685476.tar.gz
abslibre-5262f12e2cb084e77759154f9b63ad032a685476.tar.bz2
abslibre-5262f12e2cb084e77759154f9b63ad032a685476.zip
[claws-mail]: upgrade to v3.17.8
Diffstat (limited to 'nonprism/claws-mail/bash_completion')
-rw-r--r--nonprism/claws-mail/bash_completion30
1 files changed, 30 insertions, 0 deletions
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