summaryrefslogtreecommitdiff
path: root/fish/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'fish/.local/bin')
-rwxr-xr-xfish/.local/bin/launchvm.sh3
-rwxr-xr-xfish/.local/bin/vm.sh11
2 files changed, 14 insertions, 0 deletions
diff --git a/fish/.local/bin/launchvm.sh b/fish/.local/bin/launchvm.sh
new file mode 100755
index 0000000..bd71fb4
--- /dev/null
+++ b/fish/.local/bin/launchvm.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/bash
+
+waypipe ssh lain@ubuntu.bamboo $@ 2> /dev/null > /dev/null & disown
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