bash bashrc and inputrc niceties
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":
"\e[B":
-----------------
(see http://
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.