From 6e9b454fde8e9e43ef76641917d3ef0ed312dc04 Mon Sep 17 00:00:00 2001 From: Rose Hellsing Date: Thu, 18 Sep 2025 09:13:21 +0200 Subject: fish: Add vm aliases --- fish/.local/bin/launchvm.sh | 3 +++ fish/.local/bin/vm.sh | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100755 fish/.local/bin/launchvm.sh create mode 100755 fish/.local/bin/vm.sh (limited to 'fish/.local') 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 -- cgit v1.2.3