From fea2b7454a7a1ac4af97006d086c0f28c3905f3d Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 30 Jul 2019 17:30:49 +0100 Subject: [PATCH] Work on install script --- install.sh | 37 +++++++++++++++++++++++++++++++++++++ stow.sh | 25 ------------------------- 2 files changed, 37 insertions(+), 25 deletions(-) create mode 100755 install.sh delete mode 100755 stow.sh diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..a402bca5 --- /dev/null +++ b/install.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" +cd $SCRIPT_DIR + +doStow(){ + local tostow=( + "bin" + "browserOverides" + "dunst" + "git" + "pandoc" + "qutebrowser" + "ranger" + "rofi" + "sxiv" + "templates" + "vim" + "x" + "zathura" + ) + + for i in ${tostow[*]}; do + stow $i + done +} + +pacmanInstall(){ + local packages=( + "gvim" + "zsh" + "git" + ) + if pacman -Qs $package > /dev/null; then + + fi +} diff --git a/stow.sh b/stow.sh deleted file mode 100755 index b7927c30..00000000 --- a/stow.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env sh - -tostow=( - "bin" - "browserOverides" - "dunst" - "git" - "pandoc" - "qutebrowser" - "ranger" - "rofi" - "sxiv" - "templates" - "vim" - "x" - "zathura" -) - -SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" -cd SCRIPT_DIR - -for i in ${tostow[*]}; do - stow $i -done -