Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh tips for "UNIX Power Tools"
- X-seq: zsh-users 2940
- From: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: zsh tips for "UNIX Power Tools"
- Date: Sat, 4 Mar 2000 12:43:29 +0100
- In-reply-to: <87k8jjwt6h.fsf@xxxxxxxxxxxxxxxxxxxx>; from bruce+zsh@xxxxxxxxxxxxxxxxxxxx on Sat, Mar 04, 2000 at 12:08:21AM +0100
- Mail-followup-to: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <28174.952013581@xxxxxxxxx> <20000303123932.A11036@xxxxxxxxxxxxxxxxx> <87k8jjwt6h.fsf@xxxxxxxxxxxxxxxxxxxx>
On Sat, Mar 04, 2000 at 12:08:21AM +0100,
Bruce Stephens <bruce+zsh@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx> writes:
>
> [...]
>
> > And this one:
> > chmod 755 **/*(/)
> > chmod 644 **/*(.)
> > Hey, all directories are mode 755, while all plain files are mode 644!
> > Again, no find is necessary, as would be for bash:
> > find . -type d -exec chmod 755 {} \;
> > find . -type f -exec chmod 644 {} \;
>
> What's wrong with
>
> chmod -R go+rX .
It simply sets wrong permissions :-)
(and not every chmod has -R, which is bad)
[from "man chmod"]:
The letters `rwxXstugo' select the new permissions for the
affected users: [...] execute only if the file is a directory
or already has execute permission for some user (X)
Oops - there's already some plain file mode 755 which I want to have
mode 644 - your solution won't work...
> [...]
>
> > - Why not simply use ^Xh instead of ^X^H? Now, I have a feature of
> > zsh-3.1.6-dev-xx on ^Xh:
> > bindkey "^Xh" _complete_help
>
> Why not use M-h, which is built-in, I think. I don't remember
> configuring it, anyway.
I don't like M-h :-)
(well, and I use ^X <something else> for further mappings, so it is
simply consistent)
CU,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx | LCARS - Linux
<>< WWW: http://jeanluc-picard.de | for Computers
IRC: jeanluc | on All Real
PGP public key available from Homepage! | Starships
Messages sorted by:
Reverse Date,
Date,
Thread,
Author