bash prompts

Michael V. De Palatis mvd at gatech.edu
Sun Jan 21 17:40:40 UTC 2007


On Sun, Jan 21, 2007 at 12:31:38PM -0500, Seth Hasani wrote:
> On 1/18/07, Michael V. De Palatis <mvd at gatech.edu> wrote:
> 
> > I've decided that I should increase the readability of bash since I
> > spend so much time on it. At this point, I have set the prompt like
> > so:
> >
> > user at host:/current/working/directory
> > [nn]$
> >
> > where "nn" is the current command number (unnecessary, but can
> > occasionally be useful). Additionally, there is an extra newline
> > between the last command output and the "user at ...". What I want to
> > add, however, is yet another newline between my command and the
> > command's output, e.g.,
> >
> > user at host:/current/working/directory
> > [nn]$ run_some_command
> >
> > First line of output
> > Second line of output
> >
> > I have so far not been able to find out how to do this. Any ideas?
> 
> How about adding newlines at the beginning of your prompt:
> 
>     export PS1="\n\n\u@\h: \w\n[\#]\$ "

This is essentially what I already have. What I want is an *extra*
newline between the command and the command's output.

-- 
Michael V. De Palatis
Georgia Institute of Technology
School of Physics
837 State Street
Atlanta, GA 30332-0430

em vee dee at gatech dot ee dee yoo
http://mike.depalatis.net





More information about the ubuntu-users mailing list