This question already has an answer here:
I'm currently working in a really long directory. Probably something like:
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?