bash prompts

Seth Hasani sepheebear at
Sun Jan 21 17:31:38 UTC 2007

On 1/18/07, Michael V. De Palatis <mvd at> 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[\#]\$ "

Sex is not the original sin, guilt is.

More information about the ubuntu-users mailing list