help-bash
[Top][All Lists]
Advanced

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

Re: Only set VISUAL for edit-and-execute-command


From: G. Branden Robinson
Subject: Re: Only set VISUAL for edit-and-execute-command
Date: Fri, 24 May 2024 06:11:05 -0500

At 2024-05-24T07:04:19-0400, Zachary Santer wrote:
> On Fri, May 24, 2024 at 12:43 AM Mike <nvimmike@gmail.com> wrote:
> > Ideally, there would be another environment variable that I could
> > hook into just for this specific case. For example if the source had
> > something like this:
> >
> > ${EDIT_AND_EXECUTE_COMMAND:-${VISUAL:-${EDITOR:-emacs}}}
> >
> > Then I could just use EDIT_AND_EXECUTE_COMMAND and leave VISUAL
> > alone.
> 
> The command I have in my VISUAL variable specifies opening the file
> with bash syntax highlighting. If I used VISUAL for anything besides
> edit-and-execute-command, this might not be appropriate. I support
> Mike's idea, here.

READLINE_{VISUAL,EDITOR} might be a better name; either would be
shorter.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]