71d8a14a0d
This required the replacement of calls to _filedir in the script. |
||
---|---|---|
.. | ||
.gitignore | ||
Readme.md | ||
cbmc.sh.template | ||
extract_switches.sh | ||
switch_extractor_helper.c |
Readme.md
CBMC Autocomplete Scripts for Bash
This directory contains an autocomplete script for bash.
Installation 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
Installation for zsh
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 bashcompinit bashcompinit cbmcautocomplete=~/diffblue/cbmc/scripts/bash-autocomplete/cbmc.sh if [ -f $cbmcautocomplete ]; then . $cbmcautocomplete fi
source ~/.zshrc
Usage
As with the usual autocomplete in bash, start typing a switch to complete it, for example:
cbmc --clas<TAB>
will complete to
cbmc --classpath
Features implemented
- Completing all switches
- Completing values for
--cover
,--mm
and--arch
- When completing a name of a file to analyze, only files with supported extensions are shown.