summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zshrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/.zshrc b/.zshrc
index 6840bb0..442c059 100644
--- a/.zshrc
+++ b/.zshrc
@@ -420,7 +420,7 @@ chshell() {
chrootdir="$__CHROOTS/$1"
copydir="$chrootdir/$USER"
[ -d "$copydir" ] || __genchroot
- sudo mkarchroot -r ${2:-/bin/bash} "$copydir"
+ linux${1[1,2]} sudo mkarchroot -r ${2:-/bin/bash} "$copydir"
}
chbuild() {
@@ -430,8 +430,9 @@ chbuild() {
}
chinstall() {
- chrootdir="$__CHROOTS/$1"
- linux${1[1,2]} sudo makechrootpkg -r "$chrootdir" -I "$2"
+ chroot=$1; shift
+ chrootdir="$__CHROOTS/$chroot"
+ linux${chroot[1,2]} sudo makechrootpkg -r "$chrootdir" -I "$@"
}
chclean() {