diff options
| author | Benjamin Linskey | 2026-05-30 00:17:28 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-05-30 00:19:24 -0400 |
| commit | 7302e6fe0a08e11becae672877e50567c11a069f (patch) | |
| tree | 7fa86f7c173100b35938ad4cd0401adb74d4bf50 | |
| parent | dec0a812f918750b068728693fced3200080a6f9 (diff) | |
| download | dotfiles-7302e6fe0a08e11becae672877e50567c11a069f.tar.gz | |
Add “clean” and “uninstall” makefile targets
| -rw-r--r-- | Makefile | 8 | ||||
| -rw-r--r-- | README.md | 11 | ||||
| -rwxr-xr-x | uninstall.sh | 8 |
3 files changed, 23 insertions, 4 deletions
@@ -9,3 +9,11 @@ install: .PHONY: win win: @extra/win/install.sh + +.PHONY: uninstall +uninstall: + ./uninstall.sh + +.PHONY: clean +clean: uninstall + rm -rf vim-plugins @@ -1,7 +1,10 @@ dotfiles ======== -- Run "make" to symlink dotfiles into place. -- Run "make win" to perform Windows-specific setup. -- extras/mac contains a Mac Terminal.app profile file that must be manually - installed. +- `make` installs standard configuration files. +- `make win` performs Windows-specific setup. +- `make uninstall` removes symlinks in home directory. +- `make clean` removes symlinks and deletes Vim plugin repositories. + +`extras/mac` contains a Mac Terminal.app profile that must be manually +installed. diff --git a/uninstall.sh b/uninstall.sh new file mode 100755 index 0000000..f115f06 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +find "$PWD" -maxdepth 1 \ + -name '.*' \ + -not -name .git \ + -not -name .DS_Store \ + -not -name .gitignore \ + -exec sh -c 'rm $HOME/$(basename "$1")' sh {} \; |