[OS X TeX] path before prompt

Martin Costabel costabel at wanadoo.fr
Mon Feb 18 00:36:48 CET 2008


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.

-- 
Martin




 
-------------------------- Helpful Info --------------------------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
List Archive: http://tug.org/pipermail/macostex-archives/
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/



More information about the macostex-archives mailing list