Added Bash [TAB] completion to all OpenFOAM applications

When typing OpenFOAM commands, the bash completion system will
complete option names, e.g. -help, -parallel, etc.  After typing an
option that includes an argument, e.g. -case <dir>, completion will
adjust to the type of argument, e.g. present directories if the
argument is a directory.  Similarly, for applications with mandarory
file arguments, file (and directory) names will appear on the
completion list.
This commit is contained in:
Chris Greenshields
2017-05-14 10:53:03 +01:00
parent 7e04e6b55f
commit 90f39e0d89
2 changed files with 5463 additions and 0 deletions

View File

@ -209,4 +209,8 @@ unset cleaned foamClean foamOldDirs
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. $WM_PROJECT_DIR/etc/config.sh/functions
# Source the bash completion file:
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. $WM_PROJECT_DIR/etc/config.sh/bash_completion
#------------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff