Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Aristotle (5147)

Aristotle
  pagaltzis@gmx.de
http://plasmasturm.org/

Blah blah blah blah blah [technorati.com]

Journal of Aristotle (5147)

Thursday May 05, 2005
08:12 AM

Delightful dotfile debauchery

[ #24548 ]

Thanks to Power Shell Usage: Bash Tips & Tricks I just made an incredibly neat addition to my .inputrc file:

"\e[A": history-search-backward
"\e[B": history-search-forward

With these settings bash and any programs that use readline will allow you to search your history for commands that start the same using the arrow keys. You can f.ex. type “ssh” and then page through all previous command lines which start with “ssh” just by hitting arrow keys. Very handy!

The only thing I wonder is: why the heck is this not the default?!

Next up is a two-line addition to my .screenrc:

caption always ' %0c:%0s | %w'
termcapinfo xterm*|rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' # pass hardstatus thru to xterm

The caption setting causes screen to display a clock and a “task bar” listing the names of all windows in that screen session at the bottom of the terminal. The second line makes screen pass the “hardstatus” messages through to graphical terminal emulators to be displayed as the window title.

None of this is earth-shaking, but they’re all very neat little touches that make life just a little less frustrating.

Again I wonder why any of this should have taken so much digging through documentation and surfing on the web to run across. Things like these should be included in default configs shipped with distributions. Sure, some picky users won’t like the defaults, but picky users always end up tweaking settings anyway. Meanwhile, non-picky users will forever live with the defaults, however crappy. Their lives would be a lot easier if defaults were useful, not minimal. Sigh.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.