mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-11 17:30:23 +01:00
Explain how to make autocomplete permanent
This commit is contained in:
@@ -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@' \
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user