Compare commits
2 Commits
a8dd455576
...
622b723ae8
| Author | SHA1 | Date | |
|---|---|---|---|
| 622b723ae8 | |||
| 30d2facbbc |
@@ -35,7 +35,7 @@ input {
|
|||||||
// dwtp
|
// dwtp
|
||||||
// drag false
|
// drag false
|
||||||
// drag-lock
|
// drag-lock
|
||||||
natural-scroll
|
// natural-scroll
|
||||||
// accel-speed 0.2
|
// accel-speed 0.2
|
||||||
// accel-profile "flat"
|
// accel-profile "flat"
|
||||||
// scroll-method "two-finger"
|
// scroll-method "two-finger"
|
||||||
|
|||||||
@@ -177,3 +177,18 @@ apply() {
|
|||||||
apply-aur() {
|
apply-aur() {
|
||||||
(cd ~/Code/arch-ansible/scripts && bash aur-pkg-install.sh)
|
(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