Any Bash features you'd like to see?

Chris F.A. Johnson cfaj-uVmiyxGBW52XDw4h08c5KA at public.gmane.org
Fri May 13 19:57:11 UTC 2005


On Fri, 13 May 2005, Sy wrote:

> On 5/11/05, William Park <opengeometry-FFYn/CNdgSA at public.gmane.org> wrote:
>> I've just added bunch of string operations into Bash shell.
>>     http://freshmeat.net/projects/bashdiff/
>>
>> While I'm at it, is there any features that you'd like to see in Bash
>> shell?
>
> Unless I totally missed reading on this functionality..  I'd like to
> be able to type a partial command which exists in my history, and then
> press up/down to cycle through the entries in history which partially
> match what I typed.
>
>
> cd /foo
> echo bar
>
>
> echo <up>  # becomes echo bar
> cd <up> #becomes cd /foo

    Put this in your .inputrc file:

"\e[2A": history-search-backward  ## shift+up-arrow
"\e[2B": history-search-forward   ## shift+down-arrow

    (Adjust keystrokes to taste.)

> I'd also like to see proper control-left/right to hop words.  I need
> to do more reading to get this sort of thing working properly
> everywhere.  Half of the apps I use don't recognize proper key
> combinations.  =/

"\eOd": backward-word
"\eOc": forward-word

     Or, (depending on your terminal):

"\e[1;5D": backward-word
"\e[1;5C": forward-word


> As an aside, I'm still very very frustrated making the change from
> 4dos to bash, and although zsh is pretty good for certain things, its
> defaults are very broken from my perspective.  The above is actually
> possible in zsh as I understand.. but I never got around to getting it
> working.
>
> 4dos was a dream to work with and I miss it a lot.. I'm still
> contemplating wrapping it in dosemu somehow to do some basic stuff, or
> otherwise attempt to bend an existing shell to my will to make it work
> the way I want.

-- 
     Chris F.A. Johnson                     <http://cfaj.freeshell.org>
     ==================================================================
     Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
     <http://www.torfree.net/~chris/books/ssr.html>
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list