projects
/
geeqie.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Implement basic command line auto-completion
[geeqie.git]
/
auto-complete
/
geeqie
1
#!/bin/bash
2
3
_geeqie()
4
{
5
local cur
6
_init_completion -s || return
7
8
if [[ $cur == -* ]]
9
then
10
# shellcheck disable=SC2207
11
# shellcheck disable=SC2016
12
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
13
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
14
return
15
fi
16
17
} &&
18
complete -F _geeqie geeqie
19
20
# ex: filetype=sh