[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.
- Bash History Behavior Suggestion,
support <=
- Re: Bash History Behavior Suggestion, Greg Wooledge, 2024/08/19
- Re: Bash History Behavior Suggestion, Martin D Kealey, 2024/08/20
- Re: Bash History Behavior Suggestion, Martin D Kealey, 2024/08/20
- Message not available
- Re: Bash History Behavior Suggestion, support, 2024/08/20
- Re: Bash History Behavior Suggestion, Lawrence Velázquez, 2024/08/20
- Re: Bash History Behavior Suggestion, support, 2024/08/20
- Re: Bash History Behavior Suggestion, Martin D Kealey, 2024/08/20
- Re: Bash History Behavior Suggestion, support, 2024/08/20
- Re: Bash History Behavior Suggestion, Martin D Kealey, 2024/08/20
- Re: Bash History Behavior Suggestion, support, 2024/08/20