Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] [OT] PS1 geht nicht ganz
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Mon Aug 15, 2005 8:39 pm    Post subject: [solved] [OT] PS1 geht nicht ganz Reply with quote

Zur Zeit habe ich
Code:

echo $PS1
\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w> \[\033[00m\]


dabei habe ich \w, damit nicht mein ganzes home Verzeichnis (/home/supertux) angezeigt wird und stattdessen ~, also supertux@supertux:~>

mein Benutzername hieß früher "rex", aber der Name schien mir schon langweilig und hab es in "supertux" unbenannt. Wenn ich mich einloge, erscheint das ~, aber sobald ich cd irgendwas eingebe, dann verschwindet das ~ und bekomme supertux@supertux:/home/supertux>

Das komische ist, dass ich diese PS1 1:1 übernommen hab und früher hat es mit rex funktioniert. Dann habe ich einen Testuser angelegt, der "ob" heißt und diesele PS1 benutzt, Da funktioniert es.

Kann es vielleicht an der Länge von "/home/supertux" liegen?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue Aug 16, 2005 11:31 pm    Post subject: Reply with quote

ich hab den Fehler gefunden. Ich habe meinen benutzerkonto so angelegt

Code:

useradd -d /home/supertux/ ...


mit einem / am Ende und das führt dazu, dass $HOME /home/supertux/ wäre und nicht /home/supertux, wodurch dieser Fehler enstand.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum