summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-08-14 14:54:44 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-08-14 14:54:44 +0200
commit2c4aa9ab31ee75f1e186877bf74a0620f7824891 (patch)
tree0730f992edcca82caf0b4b2d4d5ba06a48c4fd70 /.zshrc
parentf378f320bfdb813461d2d50fe34b39325de4c40d (diff)
downloaddotfiles-2c4aa9ab31ee75f1e186877bf74a0620f7824891.tar.gz
dotfiles-2c4aa9ab31ee75f1e186877bf74a0620f7824891.tar.xz
zshrc: chkill: allow to remove all chroots
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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