2 added 15 characters in body
source | link

(bash 4 or later)

If you set PROMPT_DIRTRIM to a non-zero number, it will replace directories after ~ with ..., retaining the given number of trailing directories. Setting it to 1, for example, will give you

username@hostname ~/.../test_case$

If you set PROMPT_DIRTRIM to a non-zero number, it will replace directories after ~ with ..., retaining the given number of trailing directories. Setting it to 1, for example, will give you

username@hostname ~/.../test_case$

(bash 4 or later)

If you set PROMPT_DIRTRIM to a non-zero number, it will replace directories after ~ with ..., retaining the given number of trailing directories. Setting it to 1, for example, will give you

username@hostname ~/.../test_case$
1
source | link

If you set PROMPT_DIRTRIM to a non-zero number, it will replace directories after ~ with ..., retaining the given number of trailing directories. Setting it to 1, for example, will give you

username@hostname ~/.../test_case$