zsh chage
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user