Article View: gnu.bash.bug
Article #32PS1 wishes
From: Jean-Francois Lamy
Date: Wed, 21 Jun 1989 01:50
Date: Wed, 21 Jun 1989 01:50
8 lines
678 bytes
678 bytes
\w should turn the leading part of the prompt into ~ if it matches the user's home directory; I think I know that it /homes/neat/car/lamy by now. also, I would like a tcsh-like option to display only the base name of the current directory (I hate starting to type at column 40 :-) Finally, I think ksh allows for commands to be executed within the prompt, something like PS1='`basename \w`' would be cute :-)
Technical Details
Message-ID:
<89Jun20.215016edt.11717@neat.ai.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.ai.toronto.edu!lamyShow Full Headers
Complete Article Headers
Newsgroups: gnu.bash.bug Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.ai.toronto.edu!lamy From: lamy@ai.utoronto.ca (Jean-Francois Lamy) Subject: PS1 wishes Message-ID: <89Jun20.215016edt.11717@neat.ai.toronto.edu> Date: Tue, 20 Jun 89 21:50:01 EDT