diff options
Diffstat (limited to 'fish/.local/bin/vm.sh')
-rwxr-xr-x | fish/.local/bin/vm.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fish/.local/bin/vm.sh b/fish/.local/bin/vm.sh new file mode 100755 index 0000000..d56d201 --- /dev/null +++ b/fish/.local/bin/vm.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash + +if [[ "$1" == "stop" ]]; then + virsh -c qemu:///system shutdown "${@:2}" +elif [[ "$1" == "start" ]]; then + virsh -c qemu:///system start "${@:2}" +elif [[ "$1" == "files" ]]; then + sshfs -o default_permissions lain@ubuntu.bamboo:/home/lain /home/lain/Shared +else + virsh -c qemu:///system "$@" +fi |