I want to change the shell prompt in rxvt from
sh-3.00# to somthing which tells me which directory I'm working in. I've tried putting export PS1="\u@\h:\w\# " in /root/.bashrc, but I coun't get it to work.
Any help is appriciated
Thanks
How to change the shell prompt to indicate pwd?
-
- Posts: 7
- Joined: Mon 06 Aug 2007, 08:54
-
- Posts: 7
- Joined: Mon 06 Aug 2007, 08:54
Hmm - which window manager are you using? I use icewm - maybe the settings are different for other window managers ...
My settings for the console icon:
I added the -e bash myself. Before I did this my .bashrc wasn't executed, too!
My settings for the console icon:
Code: Select all
Clicking the icon opens:
/usr/bin/rxvt
Arguments to pass (for executables):
-e bash
The text displayed under the icon is:
console
I was just searching for this and this is the answer. There is a line in /etc/profile that readsDougal wrote:You should try changing the prompt export in /etc/profile
Code: Select all
PS1="# "
Code: Select all
# set prompt: ``username@hostname:/directory $ ''
PS1="[\u@\h:\w] "
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
In /root/.bashrc add this line, I call the prompt my OS2 prompt.Black Hawk wrote:The command itself works, but when I add it to the argument thing, rxvt refuses to start. Does anyone know how to fix this?
Code: Select all
PS1="[\w] "
Code: Select all
SHELL="/bin/bash"
export SHELL
here is some great prompt stuff hope it helps
http://www.murga-linux.com/puppy/viewto ... 512#121512
http://www.murga-linux.com/puppy/viewto ... 512#121512
[url=http://hostfile.org/icepak.pet]176 Icewm Themes :!:[/url]
[url=http://tinyurl.com/39fl3x]vlc-0.8.6c-i586.pet[/url]
[url=http://tinyurl.com/2q7cbp]vlc-0.8.6c-i586.pet[/url]
[url=http://tinyurl.com/39fl3x]vlc-0.8.6c-i586.pet[/url]
[url=http://tinyurl.com/2q7cbp]vlc-0.8.6c-i586.pet[/url]