[LUNI] Customize the PS1 promptKelly Martin kmartin at pyrzqxgl.orgThu Jun 5 19:13:30 CDT 2003
doug_dallmer wrote: > I am trying to customize the PS1 prompt to include the full path that it is > currently in (ie: a "pwd" command) & ( including `pwd` doesn't work). > > According to the RedHat Linux 8 Bible I have this should be the inclusion of > the "\w"; however it only returns a "~" in the prompt. When I use a "\W" I > get the current workng directory as expected. This happens in both the 2.2 > and the 2.4 kernels. > > Any ideas about fixing it? Fixing what? This behavior is as designed. See the bash manpage. ~ is the representation of the current working when you're in your home directory. If you want the full path without tilde substitution, you'll have to hack bash. Kelly
More information about the luni mailing list |