melevittfl
Registered
Hi,
Does anyone why bash doesn't display the tilde '~' correctly in the prompt on Mac OS?
For example, when I first run Terminal, I get:
hostname:~ username $
Which is right, but then if I cd to another directory underneath $HOME, the prompt is changed to something like:
hostname:/Full/Path/to/home/directory/Library username $
Then, if I do: cd ~
The prompt is:
hostname:/Full/Path/to/home/directory username $
In other words, bash stops displaying the path with $HOME substituted with a '~'.
On Linux (and solaris) bash does the right thing. I.e, the second example would be: hostname: ~/Library username $
Any ideas?
Does anyone why bash doesn't display the tilde '~' correctly in the prompt on Mac OS?
For example, when I first run Terminal, I get:
hostname:~ username $
Which is right, but then if I cd to another directory underneath $HOME, the prompt is changed to something like:
hostname:/Full/Path/to/home/directory/Library username $
Then, if I do: cd ~
The prompt is:
hostname:/Full/Path/to/home/directory username $
In other words, bash stops displaying the path with $HOME substituted with a '~'.
On Linux (and solaris) bash does the right thing. I.e, the second example would be: hostname: ~/Library username $
Any ideas?