diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2012-09-27 19:41:51 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2012-09-27 19:41:51 +0200 |
commit | 85f76ac90ba36bdf408a6dc6d54c613de136e0bb (patch) | |
tree | ac082f1d02659d6e69471c4f75dff84a53ec2142 /youtube-dl.bash-completion | |
parent | 7f36e396768722319b4036b845cd9a105b60bd5b (diff) | |
parent | 0e841bdc54c68076d82c29d541683eb844d19794 (diff) |
Merge remote-tracking branch 'FiloSottille/automation'
Diffstat (limited to 'youtube-dl.bash-completion')
-rw-r--r-- | youtube-dl.bash-completion | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/youtube-dl.bash-completion b/youtube-dl.bash-completion new file mode 100644 index 000000000..8704d0fd3 --- /dev/null +++ b/youtube-dl.bash-completion @@ -0,0 +1,14 @@ +__youtube-dl() +{ + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + opts="--all-formats --audio-format --audio-quality --auto-number --batch-file --console-title --continue --cookies --dump-user-agent --extract-audio --format --get-description --get-filename --get-format --get-thumbnail --get-title --get-url --help --ignore-errors --keep-video --list-extractors --list-formats --literal --match-title --max-downloads --max-quality --netrc --no-continue --no-mtime --no-overwrites --no-part --no-progress --output --password --playlist-end --playlist-start --prefer-free-formats --quiet --rate-limit --reject-title --retries --simulate --skip-download --srt-lang --title --update --username --verbose --version --write-description --write-info-json --write-srt" + + if [[ ${cur} == * ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi +} + +complete -F __youtube-dl youtube-dl |