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:
parent
7e04e6b55f
commit
90f39e0d89
2 changed files with 5463 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
|
|
|||
5459
etc/config.sh/bash_completion
Normal file
5459
etc/config.sh/bash_completion
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue