[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: count in vi mode alters prompt
From: |
Mohamed Akram |
Subject: |
Re: count in vi mode alters prompt |
Date: |
Mon, 20 May 2024 13:34:25 +0000 |
Is there a way to disable this feature, at least in vi mode?
> On May 20, 2024, at 5:27 PM, Chet Ramey <chet.ramey@case.edu> wrote:
>
> On 5/18/24 5:28 PM, mohd.akram@outlook.com wrote:
>
>> Bash Version: 5.2
>> Patch Level: 26
>> Release Status: release
>> Description:
>> When using vi mode in bash, whenever a count is used before a command,
>> bash replaces the prompt with (arg: n) where n is the count entered.
>> This causes the entire line to shift, which is particularly jarring if
>> a long prompt is used, as is common.
>
> This is standard readline behavior in both emacs and vi mode.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
>