Support uninstall; setup -> install
- support uninstall in Makefile - change setup script name to install
This commit is contained in:
parent
44e46bbce2
commit
2a70fdf5c2
3 changed files with 15 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -1,2 +1,5 @@
|
|||
install:
|
||||
source "${DOTFILES}/configs/setup"
|
||||
source "${DOTFILES}/configs/install"
|
||||
|
||||
uninstall:
|
||||
source "${DOTFILES}/configs/uninstall"
|
||||
|
|
11
configs/uninstall
Normal file
11
configs/uninstall
Normal 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" *)
|
Loading…
Reference in a new issue