I'm currently working in a really long directory. Probably something like:
~/Documents/c_prog/this_is_a_really_long_project_name/sub_directory/test_case/
It would be awesome if I could execute a command when I'm in this directory and it would only show *sername@hostname ~/test_case$ instead of this wall of text. When I restart bash it should just be normal again. I'm totally fine with executing this command every time I'm in this directory.
How can I achieve something like this?