diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-08-14 14:54:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-08-14 14:54:44 +0200 |
commit | 2c4aa9ab31ee75f1e186877bf74a0620f7824891 (patch) | |
tree | 0730f992edcca82caf0b4b2d4d5ba06a48c4fd70 /.zshrc | |
parent | f378f320bfdb813461d2d50fe34b39325de4c40d (diff) | |
download | dotfiles-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-- | .zshrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |