diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-04-20 15:17:49 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-04-20 15:17:49 +0200 |
commit | a1b85184afcb75b5a7b29d3bfff4c72e9a3051f3 (patch) | |
tree | eb351d30119f73d39dfb584c974cb3b99ea382d7 /.zshrc | |
parent | 86f5c5de3e2dbd6396a3cb1741935acd42aff362 (diff) | |
download | dotfiles-a1b85184afcb75b5a7b29d3bfff4c72e9a3051f3.tar.gz dotfiles-a1b85184afcb75b5a7b29d3bfff4c72e9a3051f3.tar.xz |
.zshrc: fix missing linux32 in chshell; allow more packages in chinstall
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Diffstat (limited to '.zshrc')
-rw-r--r-- | .zshrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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() { |