Re: start urxvt so that the prompt shows the desired directory
Csanyi Pal <csanyipal@gmail.com>:
>
> can one start urxvt so that the prompt shows the desired directory,
> like:
>
> username@system-name:~/desired/directory$
>
> from another urxvt?
That's controlled by the PS1 environment variable. You can search for
where it's set with "grep PS1 ~/.*" then change it there. I like
this:
export PS1='($?) $(hostname) ${PWD}_ '
for user and this for root:
export PS1='($?) $(hostname) [root] ${PWD}_ '
You then need to source the file you changed, then run urxvt.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
Reply to: