summaryrefslogtreecommitdiffstats
path: root/.zshrc
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-04-20 15:17:49 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-04-20 15:17:49 +0200
commita1b85184afcb75b5a7b29d3bfff4c72e9a3051f3 (patch)
treeeb351d30119f73d39dfb584c974cb3b99ea382d7 /.zshrc
parent86f5c5de3e2dbd6396a3cb1741935acd42aff362 (diff)
downloaddotfiles-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--.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() {