Add clean-config script

Removes all entries in ~/.config except a specified few
This commit is contained in:
Evie Litherland-Smith 2024-09-28 10:27:12 +01:00
parent 38c8683364
commit c03f88dbc3
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,7 @@
home.packages = [
(pkgs.writeShellScriptBin "esync" (builtins.readFile ./shell/esync.sh))
(pkgs.writeShellScriptBin "gsync" (builtins.readFile ./shell/gsync.sh))
(pkgs.writeShellScriptBin "clean-config" (builtins.readFile ./shell/clean-config.sh))
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
(pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh))
];

View file

@ -0,0 +1,2 @@
shopt -s extglob
rm -rf ~/.config/!(emacs|kdeconnect|protonmail|Signal|teams-for-linux|WebCord|whatsapp-for-linux)