mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- handles the case where we are currently completing something that
does not appear to be an option. For example,
foamDictionary -expanded someD[TAB]
should complete the filename, not present more options.
18 lines
813 B
Bash
18 lines
813 B
Bash
#----------------------------------*-sh-*--------------------------------------
|
|
# Tcsh completions for OpenFOAM applications
|
|
# Using bash_completion functions for the hard work
|
|
|
|
if ($?tcsh) then # tcsh only
|
|
if ( -f $WM_PROJECT_DIR/etc/config.sh/bash_completion \
|
|
&& -f $WM_PROJECT_DIR/etc/config.csh/complete) then
|
|
foreach appName (`sed -ne 's/^complete.* //p' $WM_PROJECT_DIR/etc/config.sh/bash_completion`)
|
|
# Pass explicitly
|
|
## complete $appName 'p,*,`bash $WM_PROJECT_DIR/etc/config.csh/complete '$appName' "${COMMAND_LINE}"`,'
|
|
# Pass via environment
|
|
complete $appName 'p,*,`bash $WM_PROJECT_DIR/etc/config.csh/complete '$appName'`,'
|
|
end
|
|
endif
|
|
endif
|
|
|
|
#------------------------------------------------------------------------------
|