You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export ROOT=~/dotfiles
|
|
|
|
export DOTFILES=$ROOT
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
edit)
|
|
|
|
$EDITOR $ROOT/config/$2
|
|
|
|
;;
|
|
|
|
|
|
|
|
add)
|
|
|
|
echo " - $2" >> $ROOT/packages.conf.yaml
|
|
|
|
;;
|
|
|
|
|
|
|
|
install)
|
|
|
|
sudo pacman -Sy python --noconfirm
|
|
|
|
|
|
|
|
SCRIPTS=$DOTFILES/install_scripts
|
|
|
|
|
|
|
|
$SCRIPTS/pre-install
|
|
|
|
|
|
|
|
$SCRIPTS/install-packages
|
|
|
|
|
|
|
|
# if (( $3 == "applications" ))
|
|
|
|
# then
|
|
|
|
$SCRIPTS/install-applications
|
|
|
|
# fi
|
|
|
|
|
|
|
|
$SCRIPTS/post-install
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
echo "Commands:"
|
|
|
|
echo " install installs the dotfiles"
|
|
|
|
echo " edit edit one of the config files"
|
|
|
|
echo " add add a package to the list"
|
|
|
|
;;
|
|
|
|
esac
|