rvp You've lost me, mate... That ch function only changes dirs. It doesn't set PS1--that's the shell's job.
Sorry about that. My description may be incorrect, but the screenshot speaks for itself.
EDIT: In the first screenshot:
/user/dave $ ch /u/l/b
/user/dave $ pwd
The directory in the prompt did not change. However, it does when I get options (as see in the following commands). This is using @JuvenalUrbino's
_cd function. In the second screenshot, using your
cd funtion, the prompt changes as expected.
The only problems that remain are:
/user/dave should be replaced with
2) Upon launching a new terminal my prompt starts of as
$ and it isn't until I
cd that it changes. Would be nice for it to default to