Re: [OT] Am i in the chroot?
On Sat, 11 Dec 2004, Rafael Rodríguez wrote:
> Hi. Any simple command so in a shell i can know if i'm into my 32-bit chroot
> or in the main system?
echo 'i386' > /home/chroot/etc/debian_chroot
~/.zshrc:
if [ -e /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
export PROMPT="${debian_chroot:+[$debian_chroot] }%n@%m:%~$ "
--
PGP signed and encrypted | .''`. ** Debian GNU/Linux **
messages preferred. | : :' : The universal
| `. `' Operating System
http://www.palfrader.org/ | `- http://www.debian.org/
Reply to: