The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #129 (permalink)  
Old 04-13-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,380
Quote:
Originally Posted by indiana_tas View Post
...
But one thing I really adore about bash and tcsh is that you can use time-saving history recall options, like:


Code:
$! - return last option to the previous command

I hate the hijacking of a printing character (!). When I press !, I expect to see an exclamation mark. Therefore I always set histchars to an empty string to disable that annoying misfeature.

Bash has excellent functions for history search: history-search-backward, history-search-forward, reverse-search-history. I have them bound to UP, DOWN, and ^R respectively.