[Bug 1060817] [NEW] bash bashrc and inputrc niceties
Diggory
1060817 at bugs.launchpad.net
Wed Oct 3 09:08:15 UTC 2012
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
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1060817
Title:
bash bashrc and inputrc niceties
Status in “bash” package in Ubuntu:
New
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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1060817/+subscriptions
More information about the foundations-bugs
mailing list