View previous topic :: View next topic |
Author |
Message |
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2931 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Mon Aug 15, 2005 8:39 pm Post subject: [solved] [OT] PS1 geht nicht ganz |
|
|
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 |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2931 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Tue Aug 16, 2005 11:31 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|