Support uninstall; setup -> install

- support uninstall in Makefile
- change setup script name to install
This commit is contained in:
William Carroll 2019-03-16 23:54:58 +00:00
parent 44e46bbce2
commit 2a70fdf5c2
3 changed files with 15 additions and 1 deletions

View file

@ -1,2 +1,5 @@
install:
source "${DOTFILES}/configs/setup"
source "${DOTFILES}/configs/install"
uninstall:
source "${DOTFILES}/configs/uninstall"

11
configs/uninstall Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
configs="$DOTFILES/configs"
if [[ $(uname) == 'Darwin' ]]; then
(cd "$configs/os_x" && stow --delete --target="$HOME" *)
elif [[ $(uname) == 'Linux' ]]; then
(cd "$configs/linux" && stow --delete --target="$HOME" *)
fi
(cd "$configs/shared" && stow --delete --target="$HOME" *)