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

Re: Why ``color_prompt`` is only set for ``xterm``? (colored prompt examples)



On Sun, Sep 05, 2021 at 09:38:34AM -0400, Cindy Sue Causey wrote:
> There's also that thing about how terminals will interpret the
> different types of quotes (dumb/typewriter/ASCII versus
> typographic/curly/smart) very literally. I experienced THAT fail
> firsthand and now try to remember to plug anything I copy into a plain
> text editor before then recopying over to a terminal.

Quotes matter to the shell, not to the terminal.  And the only kinds
of quotes that the shell cares about are ASCII single and double
quotes (' and " respectively).

Unicode curly quotes are not considered quotes by any shell.  They're
just random un-special characters, like q or 5 or ñ.

> Am wondering if, am more like hoping that this quotation marks part of
> it would have stood out when I research how to further customize my
> own setup. This will be a priceless personalization if I can
> eventually coerce it to say "(debootstrap) chroot" in place of some of
> the characters there. Shh, don't tell me how. Lead a fish to water,
> yada-yada. :)

Look for "chroot" in your ~/.bashrc and see how it's currently being
done.  Make sure you understand each command, and what it does.


Reply to: