Merge pull request #9054 from tom-mi/master

Add completion for snapshot names for vagrant snapshot restore|delete
This commit is contained in:
Brian Cain 2018-09-17 11:47:32 -07:00 committed by GitHub
commit 31689b6032
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -140,6 +140,15 @@ _vagrant() {
;;
esac
;;
"snapshot")
case "$prev" in
"restore"|"delete")
local snapshot_list=$(vagrant snapshot list)
COMPREPLY=($(compgen -W "${snapshot_list}" -- ${cur}))
return 0
;;
esac
;;
*)
;;
esac