Bash: expand tilde in prompt?

Bash: expand tilde in prompt?

Post by Jogar the Barbaria » Tue, 04 Jul 2000 04:00:00



 I can't seem to figure out how to get my literal home directory in my prompt
instead of the tilde. Help??

--
------------------------------------------------------------------
Greg Ackerson -- Chief IT Geek at Hernandez Engineering
If at first you don't succeed, so much for skydiving.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Bash: expand tilde in prompt?

Post by Tom Hoffma » Tue, 04 Jul 2000 04:00:00



> I can't seem to figure out how to get my literal home directory in my prompt
>instead of the tilde. Help??

Here is an echo of my $PS1 variable:



The /W gives the basename of the current working directory.  Hope this
helps.

 
 
 

Bash: expand tilde in prompt?

Post by Dave Bro » Tue, 04 Jul 2000 04:00:00



> I can't seem to figure out how to get my literal home directory in my prompt
>instead of the tilde. Help??
>--
>Greg Ackerson -- Chief IT Geek at Hernandez Engineering

If you'll settle for just the "basename", you can replace \w with \W.

If you'd like the full path name, use '$PWD' (must be single-quoted)
instead.

--
Dave Brown  Austin, TX

 
 
 

1. BASH BASH BASH BASH BASH BASH BASH BASH BASH BASH

Is there a proper fixed bash on any of the FTP sites out there?

I know there bash is on the usual sites but I don't know if they are
bugged or not :(

Regards,

Neil.

--


------------------------------------| Edinburgh, EH14 2DE, United Kingdom
**Domino: There`s nothing you can do when you`re the next in line: Domino**

2. !!! Cirrus Logic Laguna GD546x and X-windows ? !!!

3. Should the Bourne shell (/bin/sh) expand tilde (~) for home directories?

4. Color configuration in X

5. tilde in ksh directory prompt

6. how to get ftp root login changed from /foldername to /

7. bash quoting question on tilde

8. Problem compling kernel

9. Problem with tilde expansion in newer bash shells

10. tilde + variable expansion in bash

11. Configuring tilde expansion in bash

12. HELP:bash: making tilde expansion after command expansion...

13. tilde expansion with variable in bash script