mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
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:
@ -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
Reference in New Issue
Block a user