Hi,

> Hallo zusammen,
> in sarge findet sich seit kurzem folgende Zeile:

> ,----[ /etc/bash.bashrc
> | PS1='${debian_chroot:+($debian_chroot)[EMAIL PROTECTED]:\w\$ '
> `----

> Nach einem
> ,----
> | # export debian_chroot="unstable"
> `----

> Hat man dann auch ungef�hr so einen Prompt:
> ,----
> | (unstable)[EMAIL PROTECTED]:~$
> `----

> Ich frag mich nun was das soll. Wenn ich selber Variablen setzten muss
> kann ich auch gleich selbst den Prompt �ndern. Gibt es vielleicht irgendeinen
> Mechanismus der die Variable automatisch setzten sollte, der aber bei
> mir (noch) nicht funktioniert?

> Nach l�gerem Suchen habe ich z.B. das gefunden:
> ,----[ http://lists.debian.org/debian-devel-changes/2004/05/msg00560.html
> | * Update skeleton files and /etc/bash.bashrc to include the contents
> |   of /etc/debian_chroot in the prompt, if the file exists.
> `----

> Die Datei habe ich jetzt mal selbst angelegt, aber erwartungsgem�� hat
> das nat�rlich keine Konsequenzen. Also wenn jemand eine Idee hat wie
> das gedacht ist / war ...

Die Skeleton Files (hier /etc/skel/.bash_profile) werden von bash
nicht direkt evaluiert. Nur beim Anlegen neue Users werden sie nach
$HOME des Users dr�berkopiert.

Per default ist aber die �nderung oben kommentiert:

| $ pwd; grep -A5 commented .bash_profile 
| /etc/skel
| # the rest of this file is commented out.
| 
| # set variable identifying the chroot you work in
| #if [ -f /etc/debian_chroot ]; then
| #  debian_chroot=$(cat /etc/debian_chroot)
| #fi

> Wenn man sich �brigens selbst eine L�sung basteln will k�nnte man z.B. mit
> sowas anfangen:

> ,----
> | PS1='$(if [ -f /etc/debian_chroot ]; then echo "("`cat /etc/debian_chroot`") "; 
> fi;)[EMAIL PROTECTED]:\w\$ '
> `----

Gruss,

-- 
--Jhair

PGP key available from public servers - ID: 0xBAA600D0


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

Antwort per Email an