Easier history usage

Bug #83857 reported by Steven Harms
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)
Confirmed
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

Revision history for this message
Ralph Janke (txwikinger) wrote :
Changed in bash:
importance: Undecided → Wishlist
Ralph Janke (txwikinger)
Changed in bash:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.