pfr Cheers. That works well, except it still print's the full path ie. /home/user rather than ~
Have you aliased cd
to _cd
? And executed _cd
upon startup? On my side it works as expected, on ksh93 (or, to be more precise ksh2020), which I tend to use outside of NetBSD as it is the default system intrerpreter on illumos. Edit: indeed I didn't ask you what sort of ksh implementation are you on; I've never used pdksh and derivatives (oksh, mksh).
Opening a terminal:
~ $ pwd
/home/vincent
~ $ cd Documents
~/Documents $ cd /usr/lib
/usr/lib $ cd ..
/usr $ cd -
/usr/lib
/usr/lib $ cd ~
~ $ cd Pictures/Wallpapers
~/Pictures/Wallpapers $ cd ~/.config/mc
~/.config/mc $
By, the way, you came up with a cool suggestion. I think I'm sticking with this :3