Is it possible to have relative path w.r.t to a certain path(lets say /home/krg85/stackoverflow) as my bash prompt. ie If i am in a folder /home/krg85/stackoverflow/abc/cde, my prompt should be user@host abc/cde$ . I would also love to extend it so that if i am on a path /home/krg85/github, my prompt will be user@host /home/krg85/github$ instead of being user@host ../github$.
Is it possible to have relative path w.r.t to a certain path(lets say /home/krg85/stackoverflow)
Share
It sounds like you want: