Public bug reported:

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.

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1060817

Title:
  bash bashrc and inputrc niceties

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1060817/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to