diff options
author | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
---|---|---|
committer | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
commit | b7dfa5fdb2330f1e1cd222365055c3d45ad473be (patch) | |
tree | 78e455c8c43c6c00fc4639932ba7315e8c074cd3 /fish/Local/bin/vm.sh | |
parent | 98424148dfe9ab666ee928df7565e65faa41b61b (diff) | |
download | dotfiles-main.tar.gz dotfiles-main.tar.bz2 |
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 |