bash bashrc and inputrc niceties

Bug #1060817 reported by Diggory
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bash (Ubuntu)
New
Undecided
Unassigned

Bug Description

There's a few tweaks I always make to improve usability on a new installation; here are some which in my opinion aught to be provided by default:

Add the following to .bashrc to make sudoedit and a few other commands work nicely:
--------------
# Set these to the editors you'd like to use in text and graphical environments respectively:
export EDITOR=nano # or vi, vim, emacs
export VISUAL=gedit # or kwrite, kate
--------------

Also add the following since it makes 'git log' and a few other programs interact with the terminal better (mouse wheel scrolling, doesn't mess up shell history):
export LESS=R

Add the following to .inputrc for easy history searching with ↑/↓ arrows:
-------------
"\e[A":history-search-backward
"\e[B":history-search-forward
-----------------
(see http://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow)

Note that I can't guarantee there's no nasty side effects, but I've been using all the above for a months-years without problems.

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.