From a1b85184afcb75b5a7b29d3bfff4c72e9a3051f3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 20 Apr 2011 15:17:49 +0200 Subject: .zshrc: fix missing linux32 in chshell; allow more packages in chinstall Signed-off-by: Florian Pritz --- .zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.zshrc') 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() { -- cgit v1.2.3-24-g4f1b