Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

questions on general usage



-----BEGIN PGP SIGNED MESSAGE-----

I've been pretty avidly using zsh for the last... oh 3 years now, and in
the lull of progressive featurism, I've tried to keep a ``minimalist
approach''.  (it might also do with the fact that I use 16 meg linux, and
with emacs eating up 6 megs of it, all other processes should be as trim as
possible).

here are some general compctl schemes i use to reduce aliases (note: i use
only 10 aliases, and 7 functions, 3 autoloaded).  (furthur note: i use
the option globdots)

  compctl -a -q -S '=' -x 'n[-1,=]' -- alias unalias
  compctl -v -q -S '=' -x 'n[-1,=]' -- set unset
  compctl -E -q -S '=' -x 'n[-1,=]' -- export
  compctl -g '*(-/) - +' -x 'c[-1,~/]' -g '*(-/)' - 'c[-1,~]' -u -- cd
  compctl -g '^*.(o|elc)' + -g '*(-/)' more mroe emacs
  compctl -g '^*.(gz|tgz|z|Z)' + -g '*(-/)' gzip
  compctl -g '*.(gz|tgz|z|Z)' + -g '*(-/)' gunzip
  compctl -s "\$(perl -ne '/^(\w[^\t]+):/ && print \"\$1 \"' [Mm]akefile)"\
          -x 'c[-1,-f]' -f -- make

The last one gives me problems when no makefile exists, since it'll hang
until I hit control-C.  Any effective ways to make globbing produce a
filename, I've tried a couple different approaches with this
one... basically I've tried

	([Mm]akefile|/dev/null)

Which gives me ``zsh: no matches found: Mmakefile/dev/null'' which is
obvious since globbing assumes current directory, unless recursion is set
(notice the assume there).  Any solutions?

d.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMR8p5oX26urqpgG1AQEcygP/V/LuKkM4RumN6N2ah0+DAnnL5Ue+hoEg
89i7L4LzO/rFFjBvJJyzS7mjRlUSbJjm7QSE2nzi0ux4Znh+lY3afOEEN2CMmwTQ
kTo5s0YnjoAReKwDli/I6OQNhHXDS5nHaqGBp9Deyg9fPrfOsEvn/01f4UUDnYN4
TLA8jRr9dTc=
=acgl
-----END PGP SIGNATURE-----
--
           ``If you're so perfect, try walking on water.''

                                ~ anonymous scriptor



Messages sorted by: Reverse Date, Date, Thread, Author