mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- currently no cleanup of completions when deactivating an OpenFOAM tcsh environment - tab completion with directories adds a space after the slash, which makes navigation a bit annoying.
18 lines
818 B
Bash
18 lines
818 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
|
|
|
|
#------------------------------------------------------------------------------
|