summaryrefslogtreecommitdiff
path: root/completions/sqlite3
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.net.br>2019-08-07 09:17:13 -0300
commit5732da2af736c40cf693354485446ab4867ecb4d (patch)
tree76d76cdfa16ca62d20fb109da13895ec64fff110 /completions/sqlite3
parent9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff)
downloadbash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz
New upstream version 2.9upstream/2.9
Diffstat (limited to 'completions/sqlite3')
-rw-r--r--completions/sqlite313
1 files changed, 11 insertions, 2 deletions
diff --git a/completions/sqlite3 b/completions/sqlite3
index 37d78a01..a7005489 100644
--- a/completions/sqlite3
+++ b/completions/sqlite3
@@ -8,17 +8,26 @@ _sqlite3()
local dbexts='@(sqlite?(3)|?(s?(3))db)'
case $prev in
- -help|-version|-separator|-nullvalue|*.$dbexts)
+ -help|-version|-lookaside|-mmap|-newline|-nullvalue|-pagecache|\
+ -scratch|-separator|*.$dbexts)
return
;;
-init)
_filedir
return
;;
+ -cmd)
+ compopt -o filenames
+ COMPREPLY=( $(compgen -c -- "$cur") )
+ return
+ ;;
esac
+ [[ $cword -gt 2 && ${words[cword-2]} == -@(lookaside|pagecache|scratch) ]] \
+ && return
+
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") )
return
fi