From: "Štěpán Němec" <stepnem@gmail.com>
To: Micah Elliott <micah@membean.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>, zsh-users@zsh.org
Subject: Re: Idiom for booleans
Date: Sat, 13 Aug 2011 12:37:26 +0200 [thread overview]
Message-ID: <87ei0pa97d.fsf@gmail.com> (raw)
In-Reply-To: <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA__26422.7002081045$1313213450$gmane$org@mail.gmail.com> (Micah Elliott's message of "Fri, 12 Aug 2011 22:26:53 -0700")
On Sat, 13 Aug 2011 07:26:53 +0200
Micah Elliott wrote:
> So the buggy (or just bash-aware) python utility isn't going to work
> with zsh.
FWIW, I've been using this (put in my .zshrc), and never had any
problems (the (()) thing works as expected):
# from /etc/bash.bashrc, handle -> handler
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handler {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- $1
return $?
else
return 127
fi
}
fi
--
Štěpán
prev parent reply other threads:[~2011-08-13 10:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-13 0:24 Micah Elliott
2011-08-13 3:09 ` Bart Schaefer
2011-08-13 5:26 ` Micah Elliott
2011-08-15 1:11 ` Bart Schaefer
2011-08-15 8:28 ` Julien Nicoulaud
[not found] ` <CAELbujqBkE_zUG9M2+DS4mv=TxxKT=Rq4vH2fhXsbJ235B4nAA__26422.7002081045$1313213450$gmane$org@mail.gmail.com>
2011-08-13 10:37 ` Štěpán Němec [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ei0pa97d.fsf@gmail.com \
--to=stepnem@gmail.com \
--cc=micah@membean.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).