This directory contains an autocomplete script for bash.
-
Compile cbmc and
-
cd scripts/bash-autocomplete -
./extract-switches.sh -
Put the following at the end of your
~/.bashrc, with the directories adapted to your directory structure:cbmcautocomplete=~/diffblue/cbmc/scripts/bash-autocomplete/cbmc.sh if [ -f $cbmcautocomplete ]; then . $cbmcautocomplete fi
-
source ~/.bashrc
Follow 1. 2. and 3. as above.
- Put the following at the end of your
~/.zshrc, with the directories adapted to your directory structure:autoload -Uz compinit compinit autoload bashcompinit bashcompinit cbmcautocomplete=~/diffblue/cbmc/scripts/bash-autocomplete/cbmc.sh if [ -f $cbmcautocomplete ]; then . $cbmcautocomplete fi
source ~/.zshrc
As with the usual autocomplete in bash, start typing a switch to complete it, for example:
cbmc --clas<TAB>
will complete to
cbmc --classpath
- Completing all switches
- Completing values for
--cover,--mmand--arch - When completing a name of a file to analyze, only files with supported extensions are shown.