Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug Report: ... not being expanded properly?
- X-seq: zsh-workers 44046
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Aaron Lichtman <aaronlichtman@xxxxxxxxx>
- Subject: Re: Bug Report: ... not being expanded properly?
- Date: Wed, 6 Feb 2019 17:25:00 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=HBpFCbKnKl33Gw5K454SdBdk6wBX6l21jC5M6dXg5TA=; b=lFn0V6dDG0386kuZh7Sw7vcY0+lCbCmIFxX4rkBFLP24kTB8p6oJExP7WrfJXW6ISP z+aDrABxD+c45BFCva7Eja9OwQZ6z1z33KxiaydldSIKORF7Tk7bDUGLGbZDxBJSAS/q 1tlEF6mB5itdikJadNOqtNAqmXQ9vikwtJmMpiC1wYVW55Dsh8Bx5f0Z+E+/W5eFatmj eKmV4ueaYJChUbKeBCjv4hvTk/viRnur+DpDjrphpRgcrj58Xj35UQFFO5nv2A5EsyKw yRoHpHomuc6JBYeCmm0cULhEETpacvBQfippxOtTo9zfFgflqFbQKB1gpSNM8ieraFJW 0SQg==
- In-reply-to: <CAMKPFT9J-9dX2s4r9U-fbQGpXNKKM3eTiHSJMt2j15XyZZBTGg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAMKPFT9J-9dX2s4r9U-fbQGpXNKKM3eTiHSJMt2j15XyZZBTGg@mail.gmail.com>
On 2/6/19, Aaron Lichtman <aaronlichtman@xxxxxxxxx> wrote:
> Hi,
>
> Does anyone have any suggestions with regard to how to debug this? I looked
> through my .zshrc and .zprofile files and everything seems to be in order.
> I don't have a great understanding of zsh internals and am a bit lost.
>
> Any help would be appreciated.
>
> Best,
> Aaron Lichtman
Remove your aliases and use this instead,
# just type '...' to get '../..'
function _rationalise-dot() {
local MATCH MBEGIN MEND
if [[ $LBUFFER =~ '(^|/| | |'$'\n''|\||;|&)\.\.$' ]]; then
LBUFFER+=/
zle self-insert
fi
zle self-insert
}
zle -N _rationalise-dot
bindkey . _rationalise-dot
# without this, typing a . aborts incremental history search
bindkey -M isearch . self-insert
# dito for searching in menu selection
bindkey -M menuselect . self-insert
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author