From 1a998ff73b156438305b1e414aa1e5d282b4f645 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 15 Feb 2021 21:20:53 -0500 Subject: [PATCH] ADD install scripts --- run_once_clone-repos.sh | 16 ++++++++++++++++ run_once_install-packages.sh | 1 + 2 files changed, 17 insertions(+) create mode 100644 run_once_clone-repos.sh create mode 100644 run_once_install-packages.sh diff --git a/run_once_clone-repos.sh b/run_once_clone-repos.sh new file mode 100644 index 0000000..b4e76eb --- /dev/null +++ b/run_once_clone-repos.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +clone_maybe () { + if [ ! -d "$2" ]; + echo cloning git repo: "$1" + git clone --recurse-submodules "$1" "$2" + else + echo git repo already exists: "$1" + fi +} + +clone_maybe https://github.com/ndwarshuis/.emacs.d.git "$HOME/.config/emacs" +clone_maybe https://github.com/ndwarshuis/rofi-extras.git "$HOME/.config/rofi-extras" +clone_maybe https://github.com/ndwarshuis/xmonad-config.git "$HOME/.config/xmonad" +clone_maybe https://github.com/ndwarshuis/xman.git "$HOME/.config/xman" + diff --git a/run_once_install-packages.sh b/run_once_install-packages.sh new file mode 100644 index 0000000..bc8bcc8 --- /dev/null +++ b/run_once_install-packages.sh @@ -0,0 +1 @@ +sudo yay -S stack-static