[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature requests - bash history
From: |
Baruch |
Subject: |
feature requests - bash history |
Date: |
Wed, 6 Jul 2011 12:04:48 -0700 (PDT) |
Hello y'all,
First, I need to say that I'm writing this after some measure of pause, because
bash is already so richly-featured, and is the product of so much development
over so much time. However, in my recent use of bash, the following could have
been useful, and y'all might think would be useful generally.
1] display multiple solutions for a bash history search - Instead of a user
having to repeat the crtl-r/ctrl-s sequence, and have each solution overwrite
the previous one, allow the user to prefix ctrl-r/ctrl-s with an integer for
the maximum number of entries to display. Maybe prefix each solution with it's
line number in the history, so that the desired solution could be invoked using
!nn
2] Add a feature for history -d to delete more than one line of the history.
Maybe history -d n,m to delete lines n through m, or history -d n:m to delete m
lines beginning with line number n.
3] Add a feature for history -d to delete multiple lines based upon a regular
expression.
EXAMPLES:
history -d n ^man* - delete the n most recent history lines that begin with
"man"
history -d n:m ^man* - delete the first m lines that begin with "man", starting
at line n.
history -d n,m ^man* - delete all occurrences of ^man* between lines n and m.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature requests - bash history,
Baruch <=