Skip to content
Snippets Groups Projects
Commit ebc88089 authored by Simon Rose's avatar Simon Rose
Browse files

Removed -c autocomplete option

parent 90f29845
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ _iocsh_bash_completion()
return 0
fi
# -r should try to determine modules, maybe?
# Note that this does not return anything in cellMods; but that may be a bit tough, since that will depend
# -r should try to determine modules
# Note that this does not return anything in cellMods, which would require us to
# determine what cellpath to use.
if [[ ${prev} == -r ]]; then
if [ -n "${EPICS_BASE}" ] && [ -n "${E3_REQUIRE_VERSION}" ]; then
mods=$(ls "${EPICS_BASE}/require/${E3_REQUIRE_VERSION}/siteMods/" 2>/dev/null)
......@@ -29,16 +30,6 @@ _iocsh_bash_completion()
return 0
fi
# -c should provide a list of reasonable commands.
# This is imperfect, because most of these should look like:
# iocsh.bash -c 'var requireDebug 1'
# i.e. with quotes. But whatever.
if [[ ${prev} == -c ]]; then
opts="dbLoadDatabase dbLoadRecords dbLoadTemplate epicsEnvSet epicsEnvUnset iocshLoad require runScript system var"
COMPREPLY=($(compgen -W "$opts" -- ${cur}))
return 0
fi
opts="-h -v -c -s -r -e -dg -dv -l -n"
if [[ ${cur} == -* ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment