Easier history usage

Bug #83857 reported by Steven Harms on 2007-02-07
This bug report is a duplicate of:  Bug #103986: Update inputrc config and bash config. Edit Remove
4
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
Wishlist
Unassigned

Bug Description

Binary package hint: bash

https://wiki.ubuntu.com/Spec/EnhancedBash

Add helpful bash shortcuts that will help users better utilize their system. This will allow the user to see commands they typed, and give a reasonable history setting. Currently page-up and page-down scroll through history, but they don't match partially typed commands. There are other bindings for these, but this is by far the most intuitive system I have seen.

    * Bind pageup to history-search-backward
    * Bind pagedown to history-search-forward
    * Add shopt -s histappend
    * Add PROMPT_COMMAND='history -a'

What these do:

    * Bind pageup to history-search-backward
          o This will allow page-up to match previously typed commands from partial input
    * Bind pagedown to history-search-forward
          o This will allow page-down to match previously typed commands from partial input
    * Add shopt -s histappend
          o This will make bash append to the history file instead of overwrite it
    * Add PROMPT_COMMAND='history -a'
          o This will append the previous command to history each time a prompt is shown

Ralph Janke (txwikinger) wrote :
Changed in bash:
importance: Undecided → Wishlist
Ralph Janke (txwikinger) on 2008-04-06
Changed in bash:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers