bug-bash
[Top][All Lists]
Advanced

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

Bash History Behavior Suggestion


From: support
Subject: Bash History Behavior Suggestion
Date: Mon, 19 Aug 2024 15:52:22 -0400
User-agent: Roundcube Webmail

Version: GNU bash, version 5.2.15(1)-release (x86_64-pc-linux-gnu)

OS: Linux 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux

Issue: History Behavior

For up-arrow completion, I think restricting to the history of the current bash session is the correct behavior, but for invocations of the 'history' built-in command, being able to search across all sessions (past and present) is sometimes more useful.

I would suggest:

1. Append to history file immediately on each command.

2. Restrict up-arrow completion to the history of present session.

3. Add column(s) to the history file to identify the session the command came from (pty, pid, etc).

4. Add options to the 'history' command to toggle between session-local and global reporting.



reply via email to

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