Zsh Mailing List Archive
Messages sorted by:
Re: zsh: complete $PATH specs / emacs keybindings when editor is vi
- X-seq: zsh-users 12878
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Edd Barrett" <vext01@xxxxxxxxx>
- Subject: Re: zsh: complete $PATH specs / emacs keybindings when editor is vi
- Date: Thu, 29 May 2008 11:37:21 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=aznC73GgTRyO9ZP1OEw1z6VXwtgdt4nhTmZtRCgvk8M=; b=OigfeF4V3gkb+VoXhkgIyry4y4GkVe+69vIcYP9HuNPlZTdr+UGkd3JQgw1wm5GbPt2nBpiGEr+LuC1Mh+ybKhCbPB9sM5nl+FxfqLJVajAQZpTPiZen/LVYX/wyb8oYjLxsOSN1H3F5swY7l66ehgYPr7bPoIvt+iyjGHK/+l8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RjHFneR8a613WvrevhL0Qv2uve8SYDwfTuhTnNpGzTl/WV1EQGSWTrWIWIWLGDWVGgXBmQET43ncqX+XJBK0+YmKjN0qEZrHPPIIYw9J3uKoKQ2F3e/5oTFqPDs6Fka5xwUzbbn/J0xda6L/UwXnCGdC83gmkCoFbnAagQcRK8g=
- In-reply-to: <a6e8c1d0805290233l1aef207ap2509b2d48dff1e83@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <a6e8c1d0805290233l1aef207ap2509b2d48dff1e83@xxxxxxxxxxxxxx>
2008/5/29 Edd Barrett <vext01@xxxxxxxxx>:
> Hi there,
> I am new here, hello. I have been using zsh on OpenBSD as my default
> shell for about one year now and it is almost perfect for my needs.
> I have 2 queries which I have been unable to answer via FAQ/man pages
> (unless i missed them in which case sorry):
> 1) Can zsh expand paths separated by colons. This is useful when
> setting PAT, MANPATH, LD_LIBRARY_PATH etc.
> for example:
> export PATH=$PATH:/usr/local/b<TAB>
> should expand to:
> export PATH=$PATH:/usr/local/bin/
It does here, I don't know why it doesn't for you, unless you haven't
initialized the completion system at all.
> 2) I love vi/vim and have never used emacs. However I am used to emacs
> shell bindings (^A/^E = begin/end of line) from when i used to use
> ksh. Can i use these keybindings whilst EDITOR=vim?
To make the keybindings like they are when EDITOR=emacs, just run
bindkey -e. To make those two specific binds only, you can use bindkey
'^A' beginning-of-line; bindkey '^E' end-of-line.
Messages sorted by: