* Re: source ~/dir/*.zsh
[not found] <-1148869711641803316__35904.7905345962$1340323817$gmane$org@unknownmsgid>
@ 2012-06-22 7:01 ` Stephane Chazelas
0 siblings, 0 replies; only message in thread
From: Stephane Chazelas @ 2012-06-22 7:01 UTC (permalink / raw)
To: zsh-workers
2012-06-21 20:01:08 -0400, TJ Luoma:
> I have split my .zshenv into a bunch of different files which all end
> with different suffixes. For example, functions are called "foo.f.zsh"
> or "bar.f.zsh"
>
> My idea was to put them all into a special directory and then source
> them like so in ~/.zshenv
>
> source ~/dir/*.f.zsh
>
> But that doesn't seem to work.
>
> I'm not getting any errors, it just doesn't seem to actually do anything.
>
> So I need some sort of setopt or other setting to make this work?
[...]
In
source a b c
It sources "a" with arguments "b" and "c"
$ source <(echo 'echo $*') x y
x y
So, above, only the first *.f.zsh is run with the other ones as
arguments.
Try
for i (~/dir/*.f.zsh) source $i
--
Stephane
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-22 11:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <-1148869711641803316__35904.7905345962$1340323817$gmane$org@unknownmsgid>
2012-06-22 7:01 ` source ~/dir/*.zsh Stephane Chazelas
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).