Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Setting magic-space in /etc/zshrc
- X-seq: zsh-workers 38542
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Setting magic-space in /etc/zshrc
- Date: Wed, 25 May 2016 12:12:15 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=bnR25vIbMK5gZhsAA2auEuiWGWaoF8pGWx7GA1U+Tks=; b=GdbbO2CtUjFmKDCRlTwhrgqpt4y1BRZe1LgHaaLmA2C6oDWtv4yKf+Iavzi5HezTZx AkjAwq0DaDsdiybVtPT5XKcg5R18LELpJWCy1/RT3++4tmrSJXgsTUzrgKSh+EqRESSC 44Lo8sno/OMpqsWcKUShMs7vi+OoRZ0hB4BHNeQhbmMGFup0qWslrNDlO1vkmnOj5b2F 3FkgJGr2yR3/exN2FqDNS5uo2nzwZwI8NqRtKTv4ChhMUM4VHgqcHi8jVR1NUGNv41aN 6ciqCz5MRzNc75wqgjBemtRIkUXzv5/QX9f3vrVxD2i1esqMC5vbSShpVT7kiUZiwq0t qlSA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
let's have in /etc/zshrc:
bindkey ' ' magic-space
bindkey ' '
When shell startups, it shows: " " magic-space. When I issue "bindkey
' '", it shows self-insert. That's the point. However space apparently
is really bound to magic-space, despite it shows " " self-insert. I
had a widget that was overriding self-insert and it wasn't called on
space untill I've added bindkey ' ' self-insert to startup block.
Tested on Fedora 23 / zsh-5.1.1. It has space bound to magic-space by
default. I've tried doing so (via /etc/zshrc, like on Fedora) on OS X
and the problem reproduces. However, funny part is: not if I start the
shell again via zsh-5.2 -i (the same way iTerm2 starts it).
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author