I am using gnome-terminal. I often work on large projects where there are lots of sub-directories and I have to compile them from the terminal. It's a very problematic to work with long-path terminal prompt while you have one monitor.
Assume you are in a directory,
sbmaruf@lenovo:/sys/dev/block/7:6/bdi/subsystem/7:7/power$
Now while I am using the terminal, is there any tricks or shortcuts to make the current address to a dummy string or text so that it may easy to work. Like if I want to show the above address as,
sbmaruf@lenovo:proj1$
where proj1 = /sys/dev/block/7:6/bdi/subsystem/7:7/power
. I want do it on the go. like while I am using the terminal can I do it in a short amount of work.