l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2003 Jun 13 10:14

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] readline questions (in bash)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] readline questions (in bash)



i have bash bindings that allow me to use vi as well as emacs style line
editing.

in addition, they allow me to use the up/down arrows without the escape
funkyness you describe here.

let me know if you're interested.  if i get alot of requests, i'll just
post it to vox-tech.  else i'll email it to interested parties.

pete



On Fri 13 Jun 03,  9:40 AM, Adrian Kalaveshi <akalaveshi@mahinetworks.com> said:
> It's because it starts you off in input mode.  It's interesting that left or
> right brings you to command mode.  I just always use 'esc' (like in vi).  Of
> course, you can also then use 'j' and 'k' to move up and down.
> 
> -adrian-
> 
> -----Original Message-----
> From: Jay Strauss [mailto:me@heyjay.com]
> Sent: Friday, June 13, 2003 9:35 AM
> To: vox-tech@lists.lugod.org
> Subject: Re: [vox-tech] readline questions (in bash)
> 
> 
> Yeah I like the 'set -o vi',
> 
> the only problem is up|down arrow (command recall) don't work until I hit
> left or right arrow.  If I don't hit left|right I just get a flash (visual
> bell) when I hit up|down
> 
> Jay:
> ----- Original Message ----- 
> From: "Adrian Kalaveshi" <akalaveshi@mahinetworks.com>
> To: <vox-tech@lists.lugod.org>
> Sent: Friday, June 13, 2003 10:42 AM
> Subject: RE: [vox-tech] readline questions (in bash)
> 
> 
> > >Is there another way to search thru and execute a command in the history
> >
> > In vi mode, you can search through the history using vi commands
> > (/<regexp>).  You can then also use vi commands to move you to the
> > beginning of the line (^) or to the end ($).
> >
> > Enter vi mode in bash with 'set -o vi'.
> >
> > HTH,
> > -adrian-
> >
> > -----Original Message-----
> > From: Jay Strauss [mailto:me@heyjay.com]
> > Sent: Friday, June 13, 2003 6:28 AM
> > To: vox-tech
> > Subject: [vox-tech] readline questions (in bash)
> >
> >
> > 1. I know ctr-a, ctr-e move me from front to back, how do I make my home and
> > end keys do that?
> >
> > 2. Isn't cut and paste (kill/yank) supposed to keep a list of commands, that
> > I can scroll through?  When I use it, it only saves the last command I
> > killed
> >
> > 3. If I up/down arrow I scroll thru my commands.  But when I try to use C-r
> > or C-s I don't see all the commands in my history.  Is there another way to
> > search thru and execute a command in the history (ideally it would
> > autocomplete and scroll (like vim does when you want to read in a file))
> >
> > Thanks
> > Jay

-- 
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.