Re: Colorized Prompts Problem - Thanks for the Deconstruction

2015-05-22 Thread David Wright
Quoting Chris Bannister (cbannis...@slingshot.co.nz): On Fri, May 15, 2015 at 09:49:12PM -0500, David Wright wrote (and corrected himself): This conversation made me revisit my own prompt which I have now modified. I thought I'd share it with you in case any part of it should be helpful.

Re: Colorized Prompts Problem - Thanks for the Deconstruction

2015-05-20 Thread Chris Bannister
On Fri, May 15, 2015 at 09:49:12PM -0500, David Wright wrote: Quoting Thomas H. George (li...@tomgeorge.info): Your explanation is very helpful, converts the jumble I copied from a website into a logical sequence of instructions. I really appreciate being able to understand the meaning

Re: Colorized Prompts Problem - Thanks for the Deconstruction

2015-05-15 Thread David Wright
Quoting Thomas H. George (li...@tomgeorge.info): Your explanation is very helpful, converts the jumble I copied from a website into a logical sequence of instructions. I really appreciate being able to understand the meaning of the prompt. This conversation made me revisit my own prompt

Re: Colorized Prompts Problem - Thanks for the Deconstruction (correction)

2015-05-15 Thread David Wright
Quoting David Wright (deb...@lionunicorn.co.uk): export PROMPT_COMMAND+= || echo -ne '\e]0;${HOSTNAME^^} $(tty) ${HOSTNAME^^}\a' Forgive the typo; that || was in the penultimate version that I accidentally included. It should of course be ; otherwise the title only

Re: Colorized Prompts Problem - Thanks for the Deconstruction

2015-05-05 Thread Thomas H. George
On Mon, May 04, 2015 at 12:31:15PM -0500, David Wright wrote: Quoting Thomas H. George (li...@tomgeorge.info): On Mon, May 04, 2015 at 06:54:40AM +, Bonno Bloksma wrote: Hi, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to

Re: Colorized Prompts Problem

2015-05-04 Thread Bob Proulx
Petter Adsen wrote: Brad Rogers wrote: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\ [\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' Excuse me if this is a dumb question, but what does the debian_chroot part (twice) do? Basic shell substitution. The task there is to

RE: Colorized Prompts Problem

2015-05-04 Thread Bonno Bloksma
Hi, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines of text) The only problem occurs when the next entry is more than one line. In that case the

Re: Colorized Prompts Problem

2015-05-04 Thread Petter Adsen
On Mon, 4 May 2015 00:02:11 -0600 Bob Proulx b...@proulx.com wrote: Petter Adsen wrote: Brad Rogers wrote: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\ [\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' Excuse me if this is a dumb question, but what does the

Re: Colorized Prompts Problem

2015-05-04 Thread Thomas H. George
On Mon, May 04, 2015 at 06:54:40AM +, Bonno Bloksma wrote: Hi, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines of text) The only problem

Re: Colorized Prompts Problem

2015-05-04 Thread Matt Ventura
On 5/4/2015 7:57 AM, Thomas H. George wrote: On Mon, May 04, 2015 at 06:54:40AM +, Bonno Bloksma wrote: Hi, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines

Re: Colorized Prompts Problem

2015-05-04 Thread David Wright
Quoting Thomas H. George (li...@tomgeorge.info): On Mon, May 04, 2015 at 06:54:40AM +, Bonno Bloksma wrote: Hi, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills

Re: Colorized Prompts Problem

2015-05-03 Thread Curt
On 2015-05-02, Petter Adsen pet...@synth.no wrote: Excuse me if this is a dumb question, but what does the debian_chroot part (twice) do? It prompts (hee hee) you to use a search engine: http://askubuntu.com/questions/372849/what-does-debian-chrootdebian-chroot-do-in-my-terminal-prompt --

Re: Colorized Prompts Problem

2015-05-03 Thread Jonathan Dowland
On Sat, May 02, 2015 at 11:08:20AM +0200, Petter Adsen wrote: ... PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\ [\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' ... Excuse me if this is a dumb question, but what does the debian_chroot part (twice) do? If the debian_chroot

Re: Colorized Prompts Problem

2015-05-02 Thread Petter Adsen
On Fri, 1 May 2015 16:31:16 +0100 Brad Rogers b...@fineby.me.uk wrote: On Fri, 1 May 2015 11:07:46 -0400 Thomas H. George li...@tomgeorge.info wrote: Hello Thomas, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to

Re: Colorized Prompts Problem

2015-05-02 Thread Brad Rogers
On Sat, 2 May 2015 11:08:20 +0200 Petter Adsen pet...@synth.no wrote: Hello Petter, Excuse me if this is a dumb question, but what does the debian_chroot part (twice) do? No idea. As I said, I lifted the command (i.e. I didn't write it) straight from .bashrc. It does what Thomas wants, but I

Colorized Prompts Problem

2015-05-01 Thread Thomas H. George
I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines of text) The only problem occurs when the next entry is more than one line. In that case the entry wraps

Re: Colorized Prompts Problem

2015-05-01 Thread Brad Rogers
On Fri, 1 May 2015 11:07:46 -0400 Thomas H. George li...@tomgeorge.info wrote: Hello Thomas, I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines of text) Lifted

Re: Colorized Prompts Problem

2015-05-01 Thread Eduardo M KALINOWSKI
On 05/01/2015 12:07 PM, Thomas H. George wrote: I entered the following in .bashrc PS1='\033[01;33m\h:\w\$ \033[00m' to colorize the prompt (very handy to find the prompt when a command fills the console screen with lines of text) The only problem occurs when the next entry is

Re: Colorized Prompts Problem

2015-05-01 Thread Tim Kelley
I do like to use a colorized promt to show my running jobs and whether my AWS creds are in the environment, but I usually use the built in PS2 rather than create insanely long lines. It took a while to develop that habit, though, but it works better. You can of course break lines arbitrarily with