Work on install script

This commit is contained in:
Jonathan Hodgson 2019-07-30 17:30:49 +01:00
parent f4f0bcd126
commit 140c3ecf9a
2 changed files with 37 additions and 25 deletions

37
install.sh Executable file
View file

@ -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
}

25
stow.sh
View file

@ -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