aboutsummaryrefslogtreecommitdiffstats
path: root/data/completion
diff options
context:
space:
mode:
Diffstat (limited to 'data/completion')
-rw-r--r--data/completion/gallery-dl17
1 files changed, 17 insertions, 0 deletions
diff --git a/data/completion/gallery-dl b/data/completion/gallery-dl
new file mode 100644
index 0000000..415bf5c
--- /dev/null
+++ b/data/completion/gallery-dl
@@ -0,0 +1,17 @@
+_gallery_dl()
+{
+ local cur prev
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+
+ if [[ "${prev}" =~ ^(-i|--input-file|--cookies|--write-log|--write-unsupported|-c|--config|--config-yaml|--download-archive)$ ]]; then
+ COMPREPLY=( $(compgen -f -- "${cur}") )
+ elif [[ "${prev}" =~ ^(-d|--dest)$ ]]; then
+ COMPREPLY=( $(compgen -d -- "${cur}") )
+ else
+ COMPREPLY=( $(compgen -W "--help --version --dest --input-file --cookies --proxy --clear-cache --quiet --verbose --get-urls --dump-json --simulate --list-keywords --list-modules --list-extractors --write-log --write-unsupported --limit-rate --retries --abort --http-timeout --sleep --no-part --no-mtime --no-download --no-check-certificate --abort-on-skip --config --config-yaml --option --ignore-config --username --password --netrc --download-archive --range --chapter-range --filter --chapter-filter --zip --exec --ugoira-conv --ugoira-conv-lossless --write-metadata --write-tags --mtime-from-date" -- "${cur}") )
+ fi
+}
+
+complete -F _gallery_dl gallery-dl