summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index d1ccb3c..4dc9fb5 100644
--- a/.zshrc
+++ b/.zshrc
@@ -466,6 +466,12 @@ __chrootalias() {
}
chkill() {
+ if [[ $1 = all ]]; then
+ for chrootdir in "$__CHROOTS/"*(/); do
+ chkill "$(basename "$chrootdir")"
+ done
+ return
+ fi
__chrootalias $1 || return
for dir in "$__CHROOTS/$chroot/"*(/); do
sudo btrfs subvolume delete $dir