View previous topic :: View next topic |
Author |
Message |
ptitman Apprentice
Joined: 12 Sep 2003 Posts: 242 Location: well!! I don't really know!Anywhere really!
|
Posted: Sat Sep 13, 2003 7:13 am Post subject: nice shell |
|
|
hi,
i'm getting bored off this anonymous shell prompt i've got
i went into ~/.bahsrc and change Code: | PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
by
PROMPT_COMMAND='echo -ne "${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}"' |
know this is what i got Code: | manu@booba:~bash-2.05b$ |
still this bloody bash2.05 hanging around ... does anybody knows where the $ or # is appended to manu@booba:~ ?
cheers |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20421
|
Posted: Sat Sep 13, 2003 7:18 am Post subject: |
|
|
Extra informative Bash prompt might have the information. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ptitman Apprentice
Joined: 12 Sep 2003 Posts: 242 Location: well!! I don't really know!Anywhere really!
|
Posted: Sat Sep 13, 2003 7:31 am Post subject: |
|
|
real nice , going to play with that now
cheers |
|
Back to top |
|
|
cylgalad Veteran
Joined: 18 Apr 2003 Posts: 1327 Location: France
|
Posted: Sat Sep 13, 2003 8:23 am Post subject: |
|
|
The real (normal) prompt is in $PS1, not $PROMPT_COMMAND
Here's my bash prompt (in ~/.bashrc) :
Code: | export PS1='\n\d \t\n\w\n\u@\h \$ ' |
|
|
Back to top |
|
|
|