Compare commits

2 Commits

Author SHA1 Message Date
622b723ae8 Merge branch 'master' of git.opal.sh:opal/opalfiles 2026-03-12 09:05:22 -07:00
30d2facbbc zsh chage 2026-03-12 09:04:09 -07:00
2 changed files with 16 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ input {
// dwtp
// drag false
// drag-lock
natural-scroll
// natural-scroll
// accel-speed 0.2
// accel-profile "flat"
// scroll-method "two-finger"

View File

@@ -177,3 +177,18 @@ apply() {
apply-aur() {
(cd ~/Code/arch-ansible/scripts && bash aur-pkg-install.sh)
}
shred-dir() {
local dir="${1:?Usage: shred-dir <directory>}"
local passes="${2:-7}"
[[ ! -d "$dir" ]] && { echo "Not a directory: '$dir'"; return 1; }
echo "Shred '$dir' with $passes passes? [y/N]"
read -r confirm
[[ "$confirm" != [yY] ]] && { echo "Aborted."; return 1; }
find "$dir" -type f -exec shred -uz -n "$passes" {} \;
rm -rf "$dir"
echo "Done."
}