Add vars and logic for home-dir clean-up, minor obsidian changes
This commit is contained in:
25
src_files/.local/scripts/home-dir-clean.sh
Executable file
25
src_files/.local/scripts/home-dir-clean.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
# adjust settings in src_files/shell/profile, src_files/shell/rc, or otherwise
|
||||
# where feasible. if not feasible and i don't care about the programs, just
|
||||
# wipe out the associated files.
|
||||
|
||||
################
|
||||
# clean up and re-org
|
||||
|
||||
[ -d "$HOME/.cups" ] &&
|
||||
mv "$HOME"/.cups/* "$XDG_CONFIG_HOME/cups/" &&
|
||||
rmdir "$HOME/.cups"
|
||||
|
||||
################
|
||||
# wipe out
|
||||
|
||||
rm -rf "$HOME"/.bash*
|
||||
rm -rf "$HOME"/.sh_history # HISTFILE should be used instead, so just wipe this if present
|
||||
rm -rf "$HOME"/.python_history # since v 3.13.0a3, respects PYTHON_HISTORY; just wipe this
|
||||
rm -rf "$HOME"/.ruby-lsp # not sure if i want this or not, just delete for now
|
||||
rm -rf "$HOME"/.vim* # using neovim, so if any vim stuff is made, delete it
|
||||
|
||||
[ -d "$HOME/Public" ] && sudo rm -rf "$HOME/Public" # apple
|
||||
[ -d "$HOME/Documents" ] && sudo rm -rf "$HOME/Documents" # apple
|
||||
|
||||
Reference in New Issue
Block a user