Explain how to make autocomplete permanent

This commit is contained in:
Matt Churchyard
2015-10-23 11:45:23 +01:00
parent e9decd17f7
commit 5ce20cccf5
2 changed files with 5 additions and 2 deletions

View File

@@ -213,11 +213,14 @@ The default login details are Administrator and Test123.
## Autocomplete
If you are using the default csh/tcsh shell built into FreeBSD, the following command should allow
If you are using the default csh/tcsh shell built into FreeBSD, running the following command should allow
autocomplete to work for all the currently supported functions. This is especially useful for viewing
and completing guest & ISO file names. Please note that there's three ocurrances of '/path/to/vm' which
need to be changed to the directory containing your virtual machines.
To make the autocomplete features available permanently, add the following to your `$HOME/.cshrc` file. Then either
logout/login, or run `source ~/.cshrc` to cause the `.cshrc` file to be reloaded.
complete vm \
'p@1@(list create install start stop console configure reset poweroff destroy clone snapshot rollback add switch iso)@' \
'n@create@n@' \

View File

@@ -209,7 +209,7 @@ __zfs_rollback(){
_snap="${1##*@}"
[ -z "${_name}" -o -z "${_snap}" ] && __usage
[ ! "${VM_ZFS}" = "1" ] && __err "cannot snapshot guests unless ZFS support is enabled"
[ ! "${VM_ZFS}" = "1" ] && __err "cannot rollback guests unless ZFS support is enabled"
[ ! -e "${vm_dir}/${_name}/${_name}.conf" ] && __err "${_name} does not appear to be an existing virtual machine"
__vm_confirm_stopped "${_name}" || exit 1