Skip to content

Command-Line Completion¤

Introduction¤

In case you are using bash or zsh as your terminal shell, you should enable Command-line tab completion for cmemc.

Tab completion is a powerful feature and will save you a lot of typing work. Furthermore, it will help you to learn the different commands, parameters and options and will auto-complete parameter values taken live from your Corporate Memory instance (such as graph IRIs, project IDs, etc.).

cmemc - Create Dataset

We suggest using zsh so you can take advantage of its advanced menu-completion feature.

Installation¤

Info

The installation commands for the completion recently changed. Use the following lines for the completion setup of cmemc >= 23.3. If using an older version, look at the old documenation.

In order to enable tab completion with zsh run the following command:

completion setup for zsh
$ eval "$(_CMEMC_COMPLETE=zsh_source cmemc)"

In order to enable tab completion with bash run the following command:

completion setup for bash
$ eval "$(_CMEMC_COMPLETE=bash_source cmemc)"

You may want to add this line to your .bashrc or .zshrc.

Comments