For example I typed such commands:
user@my-machine:~$ cd ABC
user@my-machine:~/ABC$ cd long-name
user@my-machine:~/ABC/long-name$ cd another-long-name
user@my-machine:~/ABC/long-name/another-long-name$ ls
So, I've chosen directory I need, and I need to work in it ( lots of commands ). But half of my console line is the prompt line. It's not very comfortable. Can I shorten it for a while? For example I'll make it user@my-machine:~foo$ and when I finish working in this directory - I'll turn this shortness off.
Is there a way to do this?