Autocomplete

Add tab completion to the Kanso command-line tools

Installation

Kanso has experimental support for autocomplete on the command-line. This means you can press <Tab> to complete commands and filenames etc.

To try it out, you can install it by doing the following in your Kanso directory:

make autocomplete

If you have any issues installing or using autocomplete, please report issues on the Kanso GitHub page.

.bashrc

Your .bashrc file will be updated to include something like the following:

#KANSO: Custom tab completion
export KANSO_DIR="/usr/local/lib/node/kanso"
shopt -s progcomp
if [ -f /usr/local/lib/node/kanso/scripts/autocomp.sh ]; then
  source /usr/local/lib/node/kanso/scripts/autocomp.sh
fi

.bash_profile / .profile

If you're on Mac OSX your .bash_profile or .profile file will be updated to include the .bashrc file:

if [ -f ~/.bashrc ]; then
  source ~/.bashrc
fi