bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to workaroun 'nl' being added to input-line after 49 characters.


From: Bob Proulx
Subject: Re: how to workaroun 'nl' being added to input-line after 49 characters....
Date: Mon, 14 Feb 2011 10:05:11 -0700
User-agent: Mutt/1.5.20 (2009-06-14)

Greg Wooledge wrote:
>   red=$(tput setaf 1) bold=$(tput bold) reset=$(tput sgr0)
>   PS1='\[$red\]\h\[$reset\]:\[$bold\]\w\[$reset\]\$ '
> 
> I tested that.  It works.

Nicely cleaned up!

>   PS1='\h:\w\$ '

For what it is worth I use something similar:

  PS1='\u@\h:\w\$ '

Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]