Ok, I have a shell on a friend's OpenBSD box, and the default prompt (env var PS1) is bash-2.05$ I made the hack in the .bash_profile to get it to show:
"[username@hostname $PWD]$ "
like linux does, but since I am not at home right now, I dont have access to the Linux .bash_profile so I cant just copy the parameter over to his box. I need to know what the sed command would be to get it to remove all but the actual current directory name from $PWD
i.e. if i am in /home/speeddy/wine then i would like it to show me:
"[speeddy@onering wine]$ "
or if i am in /home i would like it to show me
"[speeddy@onering /home]$ "
etc... If anyone knows this or can think of how to do it, please email me
Speeddymon(NoSpAm)@yahoo.com
or reply here and hopefully it goes to my email since i checked the email notification checkbox
-Speeddy
"[username@hostname $PWD]$ "
like linux does, but since I am not at home right now, I dont have access to the Linux .bash_profile so I cant just copy the parameter over to his box. I need to know what the sed command would be to get it to remove all but the actual current directory name from $PWD
i.e. if i am in /home/speeddy/wine then i would like it to show me:
"[speeddy@onering wine]$ "
or if i am in /home i would like it to show me
"[speeddy@onering /home]$ "
etc... If anyone knows this or can think of how to do it, please email me
Speeddymon(NoSpAm)@yahoo.com
or reply here and hopefully it goes to my email since i checked the email notification checkbox
-Speeddy