[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Proposal] Change default _PROMPT from "> " to "> " (two spaces)
- From: Paige DePol <lual@...>
- Date: Sat, 3 Feb 2018 12:34:37 -0600
Daurnimator <firstname.lastname@example.org> wrote:
> On 3 February 2018 at 08:44, Dirk Laurie <email@example.com> wrote:
>> There is of course the obvious (to Linux users) workaround,
Not technically just Linux users, but anyone who uses a shell that supports
aliases. Bash seems to be available under pretty much every operating system
these days. The git package from Google for Windows even comes with a very
nice terminal with bash (and other utilities) included.
>> alias lua="lua -e \"_PROMPT, _PROMPT2 = whatever\" -i "
>> which caters also for the case where someone does not like your proposal.
> I find aliases clunky. Instead I use LUA_INIT (I just add a bit of
> colour) from my .bashrc:
> export LUA_INIT='_PROMPT="\1\27[32;1m\2>\1\27[0m\2 ";
> _PROMPT2="\1\27[36;1m\2>>\1\27[0m\2 "'
Why do you find aliases clunky, if I may ask? What do you use instead?
I just checked my bash profile and I seems I have 42 defined aliases and
a dozen or so functions in there. Apparently I love aliases! ;)