[OS X TeX] path before prompt

Roussanka Loukanova rloukano at stp.lingfil.uu.se
Mon Feb 18 15:02:53 CET 2008


On Mon, 18 Feb 2008, Martin Costabel wrote:

> Doris Wagner wrote:
>>  hi list,
>>  on my old mac, in the terminal before the prompt there was always the
>>  whole path (starting with home). on 10.5 there is only the name of the
>>  actual directory. how can I change this behaviour?
> The file /etc/bashrc has indeed changed between 10.4 and 10.5. On 10.4 it 
> contained the line
> if [ -n "$PS1" ]; then PS1='\h:\w \u\$ '; fi
> On 10.5 this has changed to
>  if [ -z "$PS1" ]; then
>     return
>  fi
>  PS1='\h:\W \u\$ '
> Note the 'W' instead of 'w'. If you change this to lowercase 'w', you get the 
> old behavior back.

Accept my apology for this question, but which is the good choice and why? 
I guess the default set up (i.e., 'W') should have some good rationality 


More information about the macostex-archives mailing list