diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index c08fb1a..0de7060 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -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" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index b064739..9d2abb4 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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 }" + 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." +}