Add clean-config script
Removes all entries in ~/.config except a specified few
This commit is contained in:
parent
38c8683364
commit
c03f88dbc3
|
@ -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))
|
||||
];
|
||||
|
|
2
system/home/scripts/shell/clean-config.sh
Normal file
2
system/home/scripts/shell/clean-config.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
shopt -s extglob
|
||||
rm -rf ~/.config/!(emacs|kdeconnect|protonmail|Signal|teams-for-linux|WebCord|whatsapp-for-linux)
|
Loading…
Reference in a new issue