Bash prompt

2009-08-10 Thread Douglas Royds
Limit the length of the displayed path in the Bash prompt. Loosely based on the ideas at: http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html#AEN768 Two mechanisms are presented (one of them is commented out): 1. Trim the path to the last 30 characters, and cut off a partial

Re: Bash prompt

2009-08-10 Thread Jim Cheetham
On Tue, Aug 11, 2009 at 11:44 AM, Douglas Roydsdouglas.ro...@tait.co.nz wrote: Limit the length of the displayed path in the Bash prompt. ...  1. Trim the path to the last 30 characters, and cut off a partial     leading directory name  2. Just display the last three directory names

Re: Bash prompt

2009-08-10 Thread Douglas Royds
Jim Cheetham wrote: On Tue, Aug 11, 2009 at 11:44 AM, Douglas Roydsdouglas.ro...@tait.co.nz wrote: Limit the length of the displayed path in the Bash prompt. ... 1. Trim the path to the last 30 characters, and cut off a partial leading directory name 2. Just display the last three

Re: Bash prompt

2009-08-10 Thread Craig Falconer
Douglas Royds wrote, On 11/08/09 14:18: Jim Cheetham wrote: On Tue, Aug 11, 2009 at 11:44 AM, Douglas Roydsdouglas.ro...@tait.co.nz wrote: Limit the length of the displayed path in the Bash prompt. ... 1. Trim the path to the last 30 characters, and cut off a partial leading directory