From b48d1309bfde688219e6a378b56be2a1fc0f0d09 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 30 Aug 2022 08:25:47 +0000 Subject: [PATCH] Update dotfiles/.profile --- dotfiles/.profile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotfiles/.profile b/dotfiles/.profile index 6e8a4651..1cab2efe 100644 --- a/dotfiles/.profile +++ b/dotfiles/.profile @@ -96,6 +96,18 @@ provision () { fi } +# Run the quickstart script +quickstart() { + if type qvm-run &> /dev/null; then + qvm-run --pass-io personal "curl -sSL https://install.doctor/qubes" > "$HOME/setup.sh" && bash "$HOME/setup.sh" + elif [ -d '/Applications' ] && [ -d '/Users' ] && [ -d '/Library' ]; then + curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh" + elif [ -f '/etc/os-release' ]; then + curl -sSL https://install.doctor/quickstart > "$HOME/setup.sh" && bash "$HOME/setup.sh" + fi + rm -f "$HOME/setup.sh" +} + # Generate a random string of X length randomstring() { if [ -z "$1" ]; then