This (non-official) repository provides Bash completion for ZREP. Bash is the Bourne Again SHell. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). Bash completion is a functionality through which Bash helps users type their commands more quickly and easily. It does this by presenting possible options when users press the Tab key while typing a command. ZREP provides a robust yet easy to use cross-platform ZFS based replication and fail-over solution.
Bash completion for ZREP, completes
- commands
- options
- datasets
- snapshots
- hosts
Installation is simple. Just copy the Bash completion file into the Bash completion directory, which is /etc/bash_completion.d
in many Linux distributions.
One way to achieve this is to download the file directly from GitHub.
sudo wget -O /etc/bash_completion.d/zrep https://raw.githubusercontent.com/mlan/zrep-completion/master/src/zrep
Alternatively you can clone this repository, cd
into it and type:
sudo make install
Any new shell will have Bash completion for ZREP activated.