Set PROMPT_DIRTRIM dynamically.
authorIain Patterson <me@iain.cx>
Tue, 2 Feb 2016 10:59:11 +0000 (10:59 +0000)
committerIain Patterson <me@iain.cx>
Thu, 11 Feb 2016 13:09:16 +0000 (13:09 +0000)
commit936cca97dc46219cca23e91ea9411eec359432cf
treee6357fbda65f146560923de3918ec062b4def9d3
parentd2bb143d0545987c58f65a8b18c502f792f3f748
Set PROMPT_DIRTRIM dynamically.

Unless PROMPT_DIRTRIM is explicitly set to 0, force trimming if the
length of the prompt is guesstimated to be more than 2/3 of the
available terminal width.
.profile.d/ps1.bashrc